Skip to content

Commit e7b5024

Browse files
authored
Fix build (#6057)
1 parent fb5ab30 commit e7b5024

3 files changed

Lines changed: 16 additions & 1 deletion

File tree

‎build/enums.neon‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ parameters:
1717
message: '#^Class CustomDeprecations\\MyDeprecatedEnum not found\.$#'
1818
paths:
1919
- ../tests/PHPStan/Reflection/Deprecation/DeprecationProviderTest.php
20+
21+
-
22+
rawMessage: "Value 'ReflectionFiber' in the haystack passed to in_array() can never be identical to the needle type class-string."
23+
paths:
24+
- ../src/Rules/Api/RuntimeReflectionInstantiationRule.php

‎build/more-enum-adapter-errors.neon‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,13 @@ parameters:
5656
rawMessage: 'Strict comparison using === between class-string and ''UnitEnum'' will always evaluate to false.'
5757
count: 1
5858
path: ../src/Reflection/Php/PhpClassReflectionExtension.php
59+
60+
-
61+
rawMessage: "Value 'ReflectionEnumBacke…' in the haystack passed to in_array() can never be identical to the needle type class-string."
62+
paths:
63+
- ../src/Rules/Api/RuntimeReflectionInstantiationRule.php
64+
65+
-
66+
rawMessage: "Value 'ReflectionEnum' in the haystack passed to in_array() can never be identical to the needle type class-string."
67+
paths:
68+
- ../src/Rules/Api/RuntimeReflectionInstantiationRule.php

‎src/Reflection/BetterReflection/SourceLocator/OptimizedDirectorySourceLocator.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
use PHPStan\BetterReflection\SourceLocator\Ast\Strategy\NodeToReflection;
1616
use PHPStan\BetterReflection\SourceLocator\Type\SourceLocator;
1717
use PHPStan\Cache\ArenaCache;
18-
use PHPStan\File\FileContentHasher;
1918
use PHPStan\Cache\Cache;
2019
use PHPStan\File\CouldNotReadFileException;
20+
use PHPStan\File\FileContentHasher;
2121
use PHPStan\Internal\ComposerHelper;
2222
use PHPStan\Php\PhpVersion;
2323
use PHPStan\Reflection\ConstantNameHelper;

0 commit comments

Comments
 (0)