From 2eece7794435081b49ecb87ffe71dfc18571b912 Mon Sep 17 00:00:00 2001 From: Marius Date: Fri, 27 Oct 2023 23:25:57 +0200 Subject: [PATCH] Remove `readonly` from stubs for php 8.1 compatability --- src/Console/Commands/stubs/typed_config/default.stub | 2 +- src/Console/Commands/stubs/typed_config/not_final.stub | 2 +- .../Commands/stubs/typed_config/not_final_not_strict.stub | 2 +- src/Console/Commands/stubs/typed_config/not_strict.stub | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Console/Commands/stubs/typed_config/default.stub b/src/Console/Commands/stubs/typed_config/default.stub index c3634e0..69bf2ad 100644 --- a/src/Console/Commands/stubs/typed_config/default.stub +++ b/src/Console/Commands/stubs/typed_config/default.stub @@ -4,7 +4,7 @@ declare(strict_types=1); namespace {{ namespace }}; -final readonly class {{ class }} extends {{ parent }} +final class {{ class }} extends {{ parent }} { public function __construct( {{ properties }} diff --git a/src/Console/Commands/stubs/typed_config/not_final.stub b/src/Console/Commands/stubs/typed_config/not_final.stub index b8e0478..6f6a883 100644 --- a/src/Console/Commands/stubs/typed_config/not_final.stub +++ b/src/Console/Commands/stubs/typed_config/not_final.stub @@ -4,7 +4,7 @@ declare(strict_types=1); namespace {{ namespace }}; -readonly class {{ class }} extends {{ parent }} +class {{ class }} extends {{ parent }} { public function __construct( {{ properties }} diff --git a/src/Console/Commands/stubs/typed_config/not_final_not_strict.stub b/src/Console/Commands/stubs/typed_config/not_final_not_strict.stub index 6d9bafc..152e049 100644 --- a/src/Console/Commands/stubs/typed_config/not_final_not_strict.stub +++ b/src/Console/Commands/stubs/typed_config/not_final_not_strict.stub @@ -2,7 +2,7 @@ namespace {{ namespace }}; -readonly class {{ class }} extends {{ parent }} +class {{ class }} extends {{ parent }} { public function __construct( {{ properties }} diff --git a/src/Console/Commands/stubs/typed_config/not_strict.stub b/src/Console/Commands/stubs/typed_config/not_strict.stub index 661eb2e..1ea0b7f 100644 --- a/src/Console/Commands/stubs/typed_config/not_strict.stub +++ b/src/Console/Commands/stubs/typed_config/not_strict.stub @@ -2,7 +2,7 @@ namespace {{ namespace }}; -final readonly class {{ class }} extends {{ parent }} +final class {{ class }} extends {{ parent }} { public function __construct( {{ properties }}