Skip to content

Commit

Permalink
remove exception line from phpstan-baseline for RouteCollection
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsde committed Sep 18, 2023
1 parent 26c4035 commit d736bcf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -2316,11 +2316,6 @@
'count' => 1,
'path' => __DIR__ . '/system/Router/RouteCollection.php',
];
$ignoreErrors[] = [
'message' => '#^Short ternary operator is not allowed\\. Use null coalesce operator if applicable or consider using long ternary\\.$#',
'count' => 2,
'path' => __DIR__ . '/system/Router/RouteCollection.php',
];
$ignoreErrors[] = [
'message' => '#^Method CodeIgniter\\\\Router\\\\RouteCollectionInterface\\:\\:add\\(\\) has parameter \\$to with no signature specified for Closure\\.$#',
'count' => 1,
Expand Down
4 changes: 1 addition & 3 deletions system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1700,9 +1700,7 @@ public function resetRoutes()
*/
protected function loadRoutesOptions(?string $verb = null): array
{
if (null === $verb || $verb === '') {
$verb = $this->getHTTPVerb();
}
$verb ??= $this->getHTTPVerb();

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

Expand Down

0 comments on commit d736bcf

Please sign in to comment.