Skip to content

Replace error-prone instanceof in Rules classes #20117

Replace error-prone instanceof in Rules classes

Replace error-prone instanceof in Rules classes #20117

Triggered via pull request March 7, 2025 17:52
Status Failure
Total duration 3m 15s
Artifacts

static-analysis.yml

on: pull_request
Generate baseline
1m 29s
Generate baseline
Generate PHP baseline
1m 28s
Generate PHP baseline
Matrix: PHPStan with result cache
Matrix: PHPStan
Fit to window
Zoom out
Zoom in

Annotations

33 errors
PHPStan with result cache (8.4): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan with result cache (8.4)
Process completed with exit code 2.
PHPStan with result cache (8.1): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan with result cache (8.1)
Process completed with exit code 2.
PHPStan (8.4, ubuntu-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (8.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan with result cache (8.3): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan with result cache (8.3)
Process completed with exit code 2.
PHPStan with result cache (8.2): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan with result cache (8.2)
Process completed with exit code 2.
Generate baseline
Process completed with exit code 1.
PHPStan (8.3, ubuntu-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (8.3, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.1, ubuntu-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (8.1, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.2, ubuntu-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (8.2, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.0, ubuntu-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (8.0, ubuntu-latest)
Process completed with exit code 2.
PHPStan (7.4, ubuntu-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (7.4, ubuntu-latest)
Process completed with exit code 2.
PHPStan (8.2, windows-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Rules\Arrays\DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (8.2, windows-latest)
Process completed with exit code 1.
PHPStan (8.3, windows-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Rules\Arrays\DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (8.3, windows-latest)
Process completed with exit code 1.
PHPStan (8.1, windows-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Rules\Arrays\DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (8.1, windows-latest)
Process completed with exit code 1.
PHPStan (8.0, windows-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Rules\Arrays\DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (8.0, windows-latest)
Process completed with exit code 1.
PHPStan (8.4, windows-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Rules\Arrays\DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (8.4, windows-latest)
Process completed with exit code 1.
PHPStan (7.4, windows-latest): src/Rules/Arrays/DuplicateKeysInLiteralArraysRule.php#L1
Ignored error pattern #^Doing instanceof PHPStan\\Type\\ConstantScalarType is error\-prone and deprecated\. Use Type\:\:isConstantScalarValue\(\) or Type\:\:getConstantScalarTypes\(\) or Type\:\:getConstantScalarValues\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Rules\Arrays\DuplicateKeysInLiteralArraysRule.php was not matched in reported errors.
PHPStan (7.4, windows-latest)
Process completed with exit code 1.