Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions system/Router/AutoRouterImproved.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ final class AutoRouterImproved implements AutoRouterInterface

/**
* An array of params to the controller method.
*
* @phpstan-var list<string>
*/
private array $params = [];

Expand All @@ -72,6 +74,8 @@ final class AutoRouterImproved implements AutoRouterInterface

/**
* The URI segments.
*
* @phpstan-var list<string>
*/
private array $segments = [];

Expand Down Expand Up @@ -279,6 +283,7 @@ public function getRoute(string $uri, string $httpVerb): array
}

// The first item may be a method name.
/** @phpstan-var list<string> $params */
$params = $this->params;

$methodParam = array_shift($params);
Expand Down