diff --git a/build/enums.neon b/build/enums.neon index 44eaccbbd1..d2586bab15 100644 --- a/build/enums.neon +++ b/build/enums.neon @@ -17,3 +17,8 @@ parameters: message: '#^Class CustomDeprecations\\MyDeprecatedEnum not found\.$#' paths: - ../tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php + + - + rawMessage: "Value 'ReflectionFiber' in the haystack passed to in_array() can never be identical to the needle type class-string." + paths: + - ../src/Rules/Api/RuntimeReflectionInstantiationRule.php diff --git a/build/more-enum-adapter-errors.neon b/build/more-enum-adapter-errors.neon index 9a1d09049f..981ae5635e 100644 --- a/build/more-enum-adapter-errors.neon +++ b/build/more-enum-adapter-errors.neon @@ -56,3 +56,13 @@ parameters: rawMessage: 'Strict comparison using === between class-string and ''UnitEnum'' will always evaluate to false.' count: 1 path: ../src/Reflection/Php/PhpClassReflectionExtension.php + + - + rawMessage: "Value 'ReflectionEnumBacke…' in the haystack passed to in_array() can never be identical to the needle type class-string." + paths: + - ../src/Rules/Api/RuntimeReflectionInstantiationRule.php + + - + rawMessage: "Value 'ReflectionEnum' in the haystack passed to in_array() can never be identical to the needle type class-string." + paths: + - ../src/Rules/Api/RuntimeReflectionInstantiationRule.php diff --git a/src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php b/src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php index 16230fd084..b83b5a35a1 100644 --- a/src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php +++ b/src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php @@ -15,9 +15,9 @@ use PHPStan\BetterReflection\SourceLocator\Ast\Strategy\NodeToReflection; use PHPStan\BetterReflection\SourceLocator\Type\SourceLocator; use PHPStan\Cache\ArenaCache; -use PHPStan\File\FileContentHasher; use PHPStan\Cache\Cache; use PHPStan\File\CouldNotReadFileException; +use PHPStan\File\FileContentHasher; use PHPStan\Internal\ComposerHelper; use PHPStan\Php\PhpVersion; use PHPStan\Reflection\ConstantNameHelper;