Skip to content

Commit

Permalink
Add @psalm-suppress MissingClassConstType to ActiveRecord class
Browse files Browse the repository at this point in the history
  • Loading branch information
Tigrov committed May 2, 2024
1 parent eecd194 commit 0966feb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 32 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,8 @@ concurrency:
jobs:
psalm:
uses: yiisoft/actions/.github/workflows/psalm.yml@master
strategy:
matrix:
php: [8.1, 8.2]
config: [psalm.xml]
include:
- php: 8.3
config: psalm83.xml
with:
os: >-
['ubuntu-latest']
php: >-
['${{ matrix.php }}']
psalm-config: >-
${{ matrix.config }}
['8.1', '8.2', '8.3']
22 changes: 0 additions & 22 deletions psalm83.xml

This file was deleted.

3 changes: 3 additions & 0 deletions src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@
*
* @method ActiveQuery hasMany($class, array $link) {@see BaseActiveRecord::hasMany()} for more info.
* @method ActiveQuery hasOne($class, array $link) {@see BaseActiveRecord::hasOne()} for more info.
*
* @psalm-suppress MissingClassConstType
* Required for PHP versions 8.2 and below only and must be removed after raising the minimum PHP version to 8.3.
*/
class ActiveRecord extends BaseActiveRecord
{
Expand Down

0 comments on commit 0966feb

Please sign in to comment.