Skip to content

Commit 26c4035

Browse files
committed
refactor: Apply PHPStan rule to RouteCollection::loadRoutesOptions()
1 parent 5073e8b commit 26c4035

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

system/Router/RouteCollection.php

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

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

0 commit comments

Comments
 (0)