This repository was archived by the owner on Jul 8, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +23
-10
lines changed Expand file tree Collapse file tree 5 files changed +23
-10
lines changed Original file line number Diff line number Diff line change 1414 "type" : " phpstan-extension" ,
1515 "require" : {
1616 "php" : " ^7.3 || ^8" ,
17- "phpstan/phpstan" : " ^0.12 "
17+ "phpstan/phpstan" : " ^1 "
1818 },
1919 "require-dev" : {
2020 "eloquent/code-style" : " ^2" ,
4646 " phony.neon"
4747 ]
4848 }
49- }
49+ },
50+ "minimum-stability" : " dev" ,
51+ "prefer-stable" : true
5052}
Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ parameters:
55 paths : [src , test/src , test/suite ]
66 inferPrivatePropertyTypeFromConstructor : true
77 ignoreErrors :
8- - /^Function describe not found.$/
9- - /^Function expect not found.$/
10- - /^Function it not found.$/
8+ - message : /^Calling PHPStan\\Analyser\\Error::.* is not covered by backward compatibility promise\./
9+ paths : [test/* ]
10+ - message : /^Calling PHPStan\\Command\\AnalysisResult::.* is not covered by backward compatibility promise\./
11+ paths : [test/* ]
12+ - message : /^Function describe not found\.$/
13+ paths : [test/* ]
14+ - message : /^Function expect not found\.$/
15+ paths : [test/* ]
16+ - message : /^Function it not found\.$/
17+ paths : [test/* ]
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ parameters:
55 - %rootDir%/../../../kahlan-config.php
66
77 ignoreErrors :
8- - /^Function describe not found.$/
9- - /^Function expect not found.$/
10- - /^Function it not found.$/
8+ - /^Function describe not found\ .$/
9+ - /^Function expect not found\ .$/
10+ - /^Function it not found\ .$/
Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ private static function escapeArguments(string ...$arguments): array
4141 }
4242
4343 /**
44- * @var string
44+ * @var string|null
4545 */
4646 private static $ root ;
4747
4848 /**
49- * @var array<string>
49+ * @var array<string>|null
5050 */
5151 private static $ arguments ;
5252}
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ function acceptSerializable(Serializable $serializable): void {}
1919function safeGlob (): array {
2020 $ result = call_user_func_array ('glob ' , func_get_args ());
2121
22+ if (!is_array ($ result )) {
23+ throw new RuntimeException ('Unexpected glob() result ' );
24+ }
25+
2226 if (!$ result ) {
2327 throw new RuntimeException ('No paths found ' );
2428 }
You can’t perform that action at this time.
0 commit comments