Skip to content

Commit d736bcf

Browse files
committed
remove exception line from phpstan-baseline for RouteCollection
1 parent 26c4035 commit d736bcf

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2316,11 +2316,6 @@
23162316
'count' => 1,
23172317
'path' => __DIR__ . '/system/Router/RouteCollection.php',
23182318
];
2319-
$ignoreErrors[] = [
2320-
'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
2321-
'count' => 2,
2322-
'path' => __DIR__ . '/system/Router/RouteCollection.php',
2323-
];
23242319
$ignoreErrors[] = [
23252320
'message' => '#^Method CodeIgniter\\\\Router\\\\RouteCollectionInterface\\:\\:add\\(\\) has parameter \\$to with no signature specified for Closure\\.$#',
23262321
'count' => 1,

system/Router/RouteCollection.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1700,9 +1700,7 @@ public function resetRoutes()
17001700
*/
17011701
protected function loadRoutesOptions(?string $verb = null): array
17021702
{
1703-
if (null === $verb || $verb === '') {
1704-
$verb = $this->getHTTPVerb();
1705-
}
1703+
$verb ??= $this->getHTTPVerb();
17061704

17071705
$options = $this->routesOptions[$verb] ?? [];
17081706

0 commit comments

Comments
 (0)