Narrow variable type in switch cases #19665
Annotations
3 errors and 1 warning
PHPStan with result cache:
src/Analyser/TypeSpecifier.php#L1612
Method PHPStan\Analyser\TypeSpecifier::findEnumTypeExpressionsFromBinaryOperation() should return array{PhpParser\Node\Expr, PHPStan\Type\Enum\EnumCaseObjectType, PHPStan\Type\Type}|null but returns array{PhpParser\Node\Expr, PHPStan\Type\Type, PHPStan\Type\Type}.
|
PHPStan with result cache:
src/Analyser/TypeSpecifier.php#L1618
Method PHPStan\Analyser\TypeSpecifier::findEnumTypeExpressionsFromBinaryOperation() should return array{PhpParser\Node\Expr, PHPStan\Type\Enum\EnumCaseObjectType, PHPStan\Type\Type}|null but returns array{PhpParser\Node\Expr, PHPStan\Type\Type, PHPStan\Type\Type}.
|
PHPStan with result cache
Process completed with exit code 2.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading