Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed Dec 14, 2024
1 parent 62b4c1c commit b5bdb94
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion lib/BaselineFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static private function rglob(string $pattern,int $flags = 0):array
return [];
}

foreach (glob(dirname($pattern) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir) {
foreach (glob(dirname($pattern) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) ?: [] as $dir) {
if (basename($dir) == 'vendor') {
continue;
}
Expand Down
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ parameters:
count: 4
path: lib/BaselineAnalyzer.php

-
message: "#^Argument of an invalid type array\\<int, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: lib/BaselineFinder.php

-
message: "#^Out of 28 possible constant types, only 0 \\- 0\\.0 %% actually have it\\. Add more constant types to get over 99 %%$#"
count: 2
Expand Down

0 comments on commit b5bdb94

Please sign in to comment.