Skip to content

Commit 6d8d572

Browse files
Merge pull request #23 from dimitriBouteille/develop
Release 1.1.1
2 parents 2fcfc76 + 3ca2514 commit 6d8d572

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@
3434
}
3535
},
3636
"require-dev": {
37-
"friendsofphp/php-cs-fixer": "^3.54",
38-
"phpstan/phpstan": "^1.10",
39-
"rector/rector": "^1.0",
37+
"friendsofphp/php-cs-fixer": "^3.57",
38+
"phpstan/phpstan": "^1.11",
39+
"rector/rector": "^1.1",
4040
"phpunit/phpunit": "^10.5",
4141
"phpstan/phpstan-phpunit": "^1.3",
4242
"phpstan/extension-installer": "^1.3",

src/Helpers/Parser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public static function findClassName(?string $fileContent): ?string
3232
if ($tokens[$i][0] === T_CLASS) {
3333
for ($j = $i + 1;$j < $counter;$j++) {
3434
if ($tokens[$j] === '{') {
35-
$class = $tokens[$i + 2][1];
35+
$class = $tokens[$i + 2][1] ?? null;
3636
}
3737
}
3838
}

0 commit comments

Comments
 (0)