File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed
Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1818 ],
1919 "require" : {
2020 "php" : " >=7.4.0" ,
21- "symfony/polyfill-mbstring" : " ^1.31 .0"
21+ "symfony/polyfill-mbstring" : " ^1.33 .0"
2222 },
2323 "require-dev" : {
24- "phpunit/phpunit" : " ^9.6|^11.2.2"
24+ "phpunit/phpunit" : " ^9.6|^11.5" ,
25+ "roave/security-advisories" : " dev-latest" ,
26+ "phpstan/phpstan" : " ^2.1" ,
27+ "squizlabs/php_codesniffer" : " ^3.13"
2528 },
2629 "autoload" : {
2730 "psr-4" : {
Original file line number Diff line number Diff line change 1+ includes :
2+ # - ../../phpstan.neon
3+ parameters :
4+ level : max
5+ paths :
6+ - .
7+ fileExtensions :
8+ - php
9+ - phtml
10+ excludePaths :
11+ - tests/*
Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ public function getTree(): array
173173 private function readPSL ()
174174 {
175175 $ parts = \parse_url ($ this ->url );
176- $ remote = isset ($ parts ['scheme ' ]) || isset ($ parts ['host ' ]);
176+ $ remote = \is_array ( $ parts ) && ! empty ( $ parts ) && ( isset ($ parts ['scheme ' ]) || isset ($ parts ['host ' ]) );
177177 // try to read with file_get_contents
178178 $ newPSL = \file_get_contents (($ remote ? '' : __DIR__ ) . $ this ->url );
179179 if (false !== $ newPSL ) {
You can’t perform that action at this time.
0 commit comments