File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 20
20
},
21
21
"require-dev" : {
22
22
"phpunit/phpunit" : " ^8" ,
23
- "phpstan/phpstan" : " ^1.6 " ,
24
- "phpstan/phpstan-deprecation-rules" : " ^1" ,
25
- "phpstan/phpstan-strict-rules" : " ^1.1" ,
26
- "phpstan/phpstan-phpunit" : " ^1" ,
23
+ "phpstan/phpstan" : " ^1.12 || ^2 " ,
24
+ "phpstan/phpstan-deprecation-rules" : " ^1 || ^2 " ,
25
+ "phpstan/phpstan-strict-rules" : " ^1.1 || ^2 " ,
26
+ "phpstan/phpstan-phpunit" : " ^1 || ^2 " ,
27
27
"symfony/filesystem" : " ^5.4 || ^6"
28
28
},
29
29
"autoload" : {
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ class PhpFileParser
24
24
*
25
25
* @param string $path The file to check
26
26
* @throws \RuntimeException
27
- * @return array<int, class-string> The found classes
27
+ * @return list< class-string> The found classes
28
28
*/
29
29
public static function findClasses (string $ path ): array
30
30
{
@@ -98,7 +98,9 @@ public static function findClasses(string $path): array
98
98
$ name = substr ($ name , 0 , $ colonPos );
99
99
}
100
100
}
101
- $ classes [] = ltrim ($ namespace . $ name , '\\' );
101
+ /** @var class-string */
102
+ $ className = ltrim ($ namespace . $ name , '\\' );
103
+ $ classes [] = $ className ;
102
104
}
103
105
}
104
106
You can’t perform that action at this time.
0 commit comments