Skip to content

Commit 8d30e53

Browse files
authored
Update phpstan/phpstan to 1.12 (#186)
1 parent f7e493d commit 8d30e53

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"check:ec": "ec src tests",
7979
"check:self": "bin/composer-dependency-analyser",
8080
"check:tests": "phpunit -vvv tests",
81-
"check:types": "phpstan analyse -vvv --ansi",
81+
"check:types": "phpstan analyse -vv --ansi",
8282
"fix:cs": "phpcbf"
8383
}
8484
}

composer.lock

+5-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ComposerJson.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,8 @@ private function resolveAutoloadExclude(string $basePath, string $pathPattern):
196196
$path = preg_replace_callback(
197197
'{^((?:(?:\\\\\\.){1,2}+/)+)}',
198198
static function ($matches) use (&$updir): string {
199-
if (isset($matches[1]) && $matches[1] !== '') {
200-
// undo preg_quote for the matched string
201-
$updir = str_replace('\\.', '.', $matches[1]);
202-
}
199+
// undo preg_quote for the matched string
200+
$updir = str_replace('\\.', '.', $matches[1]);
203201

204202
return '';
205203
},

0 commit comments

Comments
 (0)