Skip to content

Commit

Permalink
refactor: Apply PHPStan rule to RouteCollection::loadRoutesOptions()
Browse files Browse the repository at this point in the history
  • Loading branch information
pjsde committed Sep 16, 2023
1 parent 5073e8b commit 26c4035
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1700,7 +1700,9 @@ public function resetRoutes()
*/
protected function loadRoutesOptions(?string $verb = null): array
{
$verb = $verb ?: $this->getHTTPVerb();
if (null === $verb || $verb === '') {
$verb = $this->getHTTPVerb();
}

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

Expand Down

0 comments on commit 26c4035

Please sign in to comment.