Skip to content

Narrow variable type in switch cases #19663

Narrow variable type in switch cases

Narrow variable type in switch cases #19663

Triggered via pull request January 19, 2025 17:06
Status Failure
Total duration 3m 53s
Artifacts

static-analysis.yml

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

Annotations

161 errors and 12 warnings
PHPStan with result cache (8.4): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan with result cache (8.4): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Analyser/TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan with result cache (8.4): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.4): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.4): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.4): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.4): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.4): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.4): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.4): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
Generate baseline
Process completed with exit code 1.
PHPStan (8.1, ubuntu-latest): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.1, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Analyser/TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (8.1, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.1, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.1, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.1, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.1, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.1, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.1, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.1, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.1): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan with result cache (8.1): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Analyser/TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan with result cache (8.1): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.1): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.1): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.1): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.1): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.1): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.1): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.1): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.3, ubuntu-latest): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Analyser/TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.3, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.3): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan with result cache (8.3): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Analyser/TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan with result cache (8.3): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.3): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.3): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.3): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.3): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.3): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.3): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.3): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.4, ubuntu-latest): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Analyser/TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.2): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan with result cache (8.2): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Analyser/TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan with result cache (8.2): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.2): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.2): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan with result cache (8.2): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.2): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.2): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.2): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.2): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.2, ubuntu-latest): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.2, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Analyser/TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (8.2, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.2, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.2, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.2, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.2, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.2, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.2, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.2, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.0, ubuntu-latest): src/Analyser/NodeScopeResolver.php#L6676
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.0, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Analyser/TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (8.0, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.0, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.0, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.0, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.0, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.0, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.0, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.0, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (7.4, ubuntu-latest): src/Analyser/NodeScopeResolver.php#L6582
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (7.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1291
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path /home/runner/work/phpstan-src/phpstan-src/src/Analyser/TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (7.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1559
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (7.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1565
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (7.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1850
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (7.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1854
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (7.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1866
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (7.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1874
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (7.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1882
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (7.4, ubuntu-latest): src/Analyser/TypeSpecifier.php#L1906
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.1, windows-latest): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.1, windows-latest): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Analyser\TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (8.1, windows-latest): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.1, windows-latest): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.1, windows-latest): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.1, windows-latest): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.1, windows-latest): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.1, windows-latest): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.1, windows-latest): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.1, windows-latest): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.4, windows-latest): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.4, windows-latest): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Analyser\TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (8.4, windows-latest): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.4, windows-latest): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.4, windows-latest): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.4, windows-latest): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.4, windows-latest): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.4, windows-latest): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.4, windows-latest): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.4, windows-latest): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.3, windows-latest): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.3, windows-latest): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Analyser\TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (8.3, windows-latest): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.3, windows-latest): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.3, windows-latest): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.3, windows-latest): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.3, windows-latest): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.3, windows-latest): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.3, windows-latest): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.3, windows-latest): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.2, windows-latest): src/Analyser/NodeScopeResolver.php#L6601
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.2, windows-latest): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Analyser\TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (8.2, windows-latest): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.2, windows-latest): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.2, windows-latest): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.2, windows-latest): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.2, windows-latest): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.2, windows-latest): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.2, windows-latest): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.2, windows-latest): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.0, windows-latest): src/Analyser/NodeScopeResolver.php#L6676
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (8.0, windows-latest): src/Analyser/TypeSpecifier.php#L1318
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Analyser\TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (8.0, windows-latest): src/Analyser/TypeSpecifier.php#L1587
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.0, windows-latest): src/Analyser/TypeSpecifier.php#L1593
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.0, windows-latest): src/Analyser/TypeSpecifier.php#L1901
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (8.0, windows-latest): src/Analyser/TypeSpecifier.php#L1905
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.0, windows-latest): src/Analyser/TypeSpecifier.php#L1917
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.0, windows-latest): src/Analyser/TypeSpecifier.php#L1925
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.0, windows-latest): src/Analyser/TypeSpecifier.php#L1933
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (8.0, windows-latest): src/Analyser/TypeSpecifier.php#L1957
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (7.4, windows-latest): src/Analyser/NodeScopeResolver.php#L6582
Parameter #2 $right of class PhpParser\Node\Expr\BinaryOp\BooleanAnd constructor expects PhpParser\Node\Expr, PhpParser\Node\Expr|null given.
PHPStan (7.4, windows-latest): src/Analyser/TypeSpecifier.php#L1291
Ignored error pattern #^Doing instanceof PHPStan\\Type\\Constant\\ConstantBooleanType is error\-prone and deprecated\. Use Type\:\:isTrue\(\) or Type\:\:isFalse\(\) instead\.$# (phpstanApi.instanceofType) in path D:\a\phpstan-src\phpstan-src\src\Analyser\TypeSpecifier.php is expected to occur 5 times, but occurred 6 times.
PHPStan (7.4, windows-latest): src/Analyser/TypeSpecifier.php#L1559
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (7.4, windows-latest): src/Analyser/TypeSpecifier.php#L1565
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (7.4, windows-latest): src/Analyser/TypeSpecifier.php#L1850
Doing instanceof PHPStan\Type\Enum\EnumCaseObjectType is error-prone and deprecated. Use Type::getEnumCases() instead.
PHPStan (7.4, windows-latest): src/Analyser/TypeSpecifier.php#L1854
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (7.4, windows-latest): src/Analyser/TypeSpecifier.php#L1866
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (7.4, windows-latest): src/Analyser/TypeSpecifier.php#L1874
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (7.4, windows-latest): src/Analyser/TypeSpecifier.php#L1882
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan (7.4, windows-latest): src/Analyser/TypeSpecifier.php#L1906
Call to an undefined method PHPStan\Type\ConstantScalarType|PHPStan\Type\Enum\EnumCaseObjectType::getValue().
PHPStan with result cache (8.4)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Generate baseline
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan (8.1, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan with result cache (8.1)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan (8.3, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan with result cache (8.3)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Generate PHP baseline
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan (8.4, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan with result cache (8.2)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan (8.2, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan (8.0, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
PHPStan (7.4, ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636