Skip to content

Commit 1d72551

Browse files
Mark immutable promoted properties as readonly
Also removes the one redundant 'readonly' modifier in ActionFactory, which is already a readonly class.
1 parent dab940d commit 1d72551

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/Config/KeyValueStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ final class KeyValueStore
1515
*/
1616
private function __construct(
1717
private array $map,
18-
private ?string $delimiter,
18+
private readonly ?string $delimiter,
1919
) {
2020
}
2121

src/Factory/ActionFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(
4343
private AuthorizationCheckerInterface $authChecker,
4444
private AdminUrlGeneratorInterface $adminUrlGenerator,
4545
private ?CsrfTokenManagerInterface $csrfTokenManager = null,
46-
private readonly iterable $actionsExtensions = [],
46+
private iterable $actionsExtensions = [],
4747
) {
4848
}
4949

src/Filter/Configurator/CommonConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
final class CommonConfigurator implements FilterConfiguratorInterface
1919
{
2020
public function __construct(
21-
private EntityTranslationIdGeneratorInterface $entityTranslationIdGenerator,
21+
private readonly EntityTranslationIdGeneratorInterface $entityTranslationIdGenerator,
2222
) {
2323
}
2424

src/Filter/Configurator/EntityConfigurator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
final class EntityConfigurator implements FilterConfiguratorInterface
2020
{
2121
public function __construct(
22-
private AdminUrlGeneratorInterface $adminUrlGenerator,
22+
private readonly AdminUrlGeneratorInterface $adminUrlGenerator,
2323
) {
2424
}
2525

src/Router/AdminRouteLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class AdminRouteLoader extends Loader
1414
public const ROUTE_LOADER_TYPE = 'easyadmin.routes';
1515

1616
public function __construct(
17-
private AdminRouteGeneratorInterface $adminRouteGenerator,
17+
private readonly AdminRouteGeneratorInterface $adminRouteGenerator,
1818
) {
1919
parent::__construct(null);
2020
}

0 commit comments

Comments
 (0)