Skip to content

Commit dbcb441

Browse files
committed
TASK: Adjust phpstan config to apply level 8 rules to the Flow/Reflection context and remove breaking changes
1 parent 606c293 commit dbcb441

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Neos.Flow/Classes/Reflection/ReflectionService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2091,7 +2091,7 @@ protected function cleanClassName(string $className): string
20912091
{
20922092
$className = ltrim($className, '\\');
20932093
if (!class_exists($className)) {
2094-
throw new \Exception('Invalid class ' . $className, 1744047892);
2094+
throw new ClassLoadingForReflectionFailedException('Invalid class ' . $className, 1744047892);
20952095
}
20962096

20972097
return $className;

phpstan.neon.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
parameters:
22
level: 8
33
paths:
4+
- Neos.Flow/Classes/Reflection
45
- Neos.Flow/Classes/ResourceManagement
56
- Neos.Flow/Classes/Security
67
- Neos.Flow/Classes/Session

0 commit comments

Comments
 (0)