Skip to content

Commit 6794fa9

Browse files
committed
add readonly to properties
1 parent eb2bbcb commit 6794fa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/UrlGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class UrlGenerator implements UrlGeneratorInterface
2121

2222
private readonly RouteParser $routeParser;
2323

24-
public function __construct(RoutesByNameInterface $routes, private string $basePath = '')
24+
public function __construct(RoutesByNameInterface $routes, private readonly string $basePath = '')
2525
{
2626
$this->routesByName = $routes->getRoutesByName();
2727
$this->routeParser = new RouteParser();

0 commit comments

Comments
 (0)