Skip to content

Commit

Permalink
Update phpstan/phpstan to 1.12 (#186)
Browse files Browse the repository at this point in the history
  • Loading branch information
janedbal authored Sep 2, 2024
1 parent f7e493d commit 8d30e53
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"check:ec": "ec src tests",
"check:self": "bin/composer-dependency-analyser",
"check:tests": "phpunit -vvv tests",
"check:types": "phpstan analyse -vvv --ansi",
"check:types": "phpstan analyse -vv --ansi",
"fix:cs": "phpcbf"
}
}
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/ComposerJson.php
Original file line number Diff line number Diff line change
Expand Up @@ -196,10 +196,8 @@ private function resolveAutoloadExclude(string $basePath, string $pathPattern):
$path = preg_replace_callback(
'{^((?:(?:\\\\\\.){1,2}+/)+)}',
static function ($matches) use (&$updir): string {
if (isset($matches[1]) && $matches[1] !== '') {
// undo preg_quote for the matched string
$updir = str_replace('\\.', '.', $matches[1]);
}
// undo preg_quote for the matched string
$updir = str_replace('\\.', '.', $matches[1]);

return '';
},
Expand Down

0 comments on commit 8d30e53

Please sign in to comment.