We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2fcfc76 + 3ca2514 commit 6d8d572Copy full SHA for 6d8d572
composer.json
@@ -34,9 +34,9 @@
34
}
35
},
36
"require-dev": {
37
- "friendsofphp/php-cs-fixer": "^3.54",
38
- "phpstan/phpstan": "^1.10",
39
- "rector/rector": "^1.0",
+ "friendsofphp/php-cs-fixer": "^3.57",
+ "phpstan/phpstan": "^1.11",
+ "rector/rector": "^1.1",
40
"phpunit/phpunit": "^10.5",
41
"phpstan/phpstan-phpunit": "^1.3",
42
"phpstan/extension-installer": "^1.3",
src/Helpers/Parser.php
@@ -32,7 +32,7 @@ public static function findClassName(?string $fileContent): ?string
32
if ($tokens[$i][0] === T_CLASS) {
33
for ($j = $i + 1;$j < $counter;$j++) {
if ($tokens[$j] === '{') {
- $class = $tokens[$i + 2][1];
+ $class = $tokens[$i + 2][1] ?? null;
0 commit comments