Skip to content

Commit

Permalink
Merge pull request #9210 from samsonasik/refactor-more-readonly
Browse files Browse the repository at this point in the history
refactor: add more readonly property definitions on AutoRouteCollector and SiteURI
  • Loading branch information
samsonasik authored Oct 3, 2024
2 parents ba8e97a + 86ddfaa commit 6d3de6d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(
private readonly string $defaultMethod,
private readonly array $httpMethods,
private readonly array $protectedControllers,
private string $prefix = ''
private readonly string $prefix = ''
) {
}

Expand Down
2 changes: 1 addition & 1 deletion system/HTTP/SiteURI.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SiteURI extends URI
/**
* The Index File.
*/
private string $indexPage;
private readonly string $indexPage;

/**
* List of URI segments in baseURL and indexPage.
Expand Down

0 comments on commit 6d3de6d

Please sign in to comment.