Skip to content

Commit

Permalink
Revert "Add @psalm-suppress MissingClassConstType to ActiveRecord
Browse files Browse the repository at this point in the history
… class"

This reverts commit 0966feb.
  • Loading branch information
Tigrov committed May 2, 2024
1 parent 0966feb commit 751d451
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 4 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,17 @@ 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: >-
['8.1', '8.2', '8.3']
['${{ matrix.php }}']
psalm-config: >-
${{ matrix.config }}
22 changes: 22 additions & 0 deletions psalm83.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0"?>
<psalm
errorLevel="2"
findUnusedBaselineEntry="true"
findUnusedCode="false"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="src" />
<ignoreFiles>
<directory name="vendor" />
</ignoreFiles>
</projectFiles>
<issueHandlers>
<MixedAssignment errorLevel="suppress" />
<RiskyTruthyFalsyComparison errorLevel="suppress" />
<MissingClassConstType errorLevel="suppress" />
</issueHandlers>
</psalm>
3 changes: 0 additions & 3 deletions src/ActiveRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@
*
* @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 751d451

Please sign in to comment.