Remove unnecessary variable

This commit is contained in:
William 2025-04-19 23:51:43 +02:00 committed by GitHub
parent f533c70e68
commit 3a10c34367
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -309,7 +309,7 @@ class Route2
public static function dispatch(?string $method = null, ?string $uri = null): bool
{
$method = strtoupper($method ?? $_SERVER['REQUEST_METHOD']);
$uri = rawurldecode($uri = strtok($uri ?? self::getRelativeRequestUri(), '?'));
$uri = rawurldecode(strtok($uri ?? self::getRelativeRequestUri(), '?'));
$routes = self::matchRoute($uri);