Skip to content

Replace error-prone instanceof in Rules classes #20092

Replace error-prone instanceof in Rules classes

Replace error-prone instanceof in Rules classes #20092

Triggered via pull request March 6, 2025 16:54
Status Failure
Total duration 3m 26s
Artifacts

static-analysis.yml

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

Annotations

161 errors
PHPStan with result cache (8.4): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan with result cache (8.4): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.4): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.4): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.4): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.4): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.4): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.4): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.4): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.4): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (8.1, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, ubuntu-latest): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, ubuntu-latest): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, ubuntu-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.1): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan with result cache (8.1): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.1): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.1): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.1): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.1): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.1): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.1): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.1): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.1): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.3): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan with result cache (8.3): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.3): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.3): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.3): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.3): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.3): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.3): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.3): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.3): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.2): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan with result cache (8.2): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.2): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.2): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.2): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.2): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.2): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.2): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.2): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan with result cache (8.2): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (8.3, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, ubuntu-latest): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, ubuntu-latest): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, ubuntu-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
Generate baseline
Process completed with exit code 1.
PHPStan (8.4, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (8.4, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, ubuntu-latest): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, ubuntu-latest): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, ubuntu-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (8.2, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, ubuntu-latest): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, ubuntu-latest): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, ubuntu-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (8.0, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, ubuntu-latest): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, ubuntu-latest): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, ubuntu-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, ubuntu-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L121
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (7.4, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1751
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1753
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1771
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, ubuntu-latest): src/Reflection/InitializerExprTypeResolver.php#L1773
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L123
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, ubuntu-latest): src/Type/Constant/ConstantArrayType.php#L1282
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, ubuntu-latest): src/Type/IntegerRangeType.php#L45
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, ubuntu-latest): src/Type/IntegerRangeType.php#L46
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, ubuntu-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, windows-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (8.2, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, windows-latest): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, windows-latest): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, windows-latest): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, windows-latest): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan (8.2, windows-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, windows-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (8.4, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, windows-latest): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, windows-latest): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, windows-latest): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, windows-latest): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan (8.4, windows-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, windows-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (8.1, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, windows-latest): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, windows-latest): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, windows-latest): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, windows-latest): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan (8.1, windows-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, windows-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (8.0, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, windows-latest): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, windows-latest): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, windows-latest): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, windows-latest): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan (8.0, windows-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, windows-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L121
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (7.4, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1751
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1753
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1771
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1773
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, windows-latest): src/Type/Constant/ConstantArrayType.php#L123
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, windows-latest): src/Type/Constant/ConstantArrayType.php#L1282
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, windows-latest): src/Type/IntegerRangeType.php#L45
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, windows-latest): src/Type/IntegerRangeType.php#L46
Call to function assert() with bool will always evaluate to true.
PHPStan (7.4, windows-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, windows-latest): src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php#L110
Method PHPStan\Reflection\BetterReflection\SourceLocator\OptimizedDirectorySourceLocator::nodeToReflection() has parameter $fetchedNode with generic class PHPStan\Reflection\BetterReflection\SourceLocator\FetchedNode but does not specify its types: T
PHPStan (8.3, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1746
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1748
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1766
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, windows-latest): src/Reflection/InitializerExprTypeResolver.php#L1768
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, windows-latest): src/Type/Constant/ConstantArrayType.php#L109
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, windows-latest): src/Type/Constant/ConstantArrayType.php#L1270
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, windows-latest): src/Type/IntegerRangeType.php#L41
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, windows-latest): src/Type/IntegerRangeType.php#L42
Call to function assert() with bool will always evaluate to true.
PHPStan (8.3, windows-latest): src/Type/Php/RandomIntFunctionReturnTypeExtension.php#L72
Call to function assert() with bool will always evaluate to true.