File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 22
33namespace staabm \PHPStanTodoBy ;
44
5- use OutOfBoundsException ;
65use Composer \Semver \VersionParser ;
6+ use OutOfBoundsException ;
77use PhpParser \Comment ;
88use PhpParser \Node ;
99use PHPStan \Analyser \Scope ;
@@ -306,13 +306,13 @@ private function getVersionComparator(string $version): ?string
306306 return $ comparator ;
307307 }
308308
309- public function getVersionRanges (string $ packageName ) : string
309+ public function getVersionRanges (string $ packageName ): string
310310 {
311311 if (!isset ($ this ->installedVersions ['versions ' ][$ packageName ])) {
312312 throw new OutOfBoundsException ('Package " ' . $ packageName . '" is not installed ' );
313313 }
314314
315- $ ranges = array () ;
315+ $ ranges = [] ;
316316 if (isset ($ this ->installedVersions ['versions ' ][$ packageName ]['pretty_version ' ])) {
317317 $ ranges [] = $ this ->installedVersions ['versions ' ][$ packageName ]['pretty_version ' ];
318318 }
You can’t perform that action at this time.
0 commit comments