From 44ce94191454cfc920de64796f2b26619ac2128c Mon Sep 17 00:00:00 2001 From: spiralbot Date: Tue, 10 Sep 2024 16:54:27 +0000 Subject: [PATCH] Merge pull request #1141: Apply php8.1 in Rector preset --- src/BootloadManager/BootloadManager.php | 2 +- src/Bootloader/ConfigurationBootloader.php | 2 +- src/Environment.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BootloadManager/BootloadManager.php b/src/BootloadManager/BootloadManager.php index 517bf94..a4039aa 100644 --- a/src/BootloadManager/BootloadManager.php +++ b/src/BootloadManager/BootloadManager.php @@ -13,7 +13,7 @@ */ final class BootloadManager extends AbstractBootloadManager { - private InvokerStrategyInterface $invokerStrategy; + private readonly InvokerStrategyInterface $invokerStrategy; public function __construct( ScopeInterface $scope, diff --git a/src/Bootloader/ConfigurationBootloader.php b/src/Bootloader/ConfigurationBootloader.php index 895cb41..91517ff 100644 --- a/src/Bootloader/ConfigurationBootloader.php +++ b/src/Bootloader/ConfigurationBootloader.php @@ -27,7 +27,7 @@ final class ConfigurationBootloader extends Bootloader ConfigManager::class => [self::class, 'configManager'], ]; - private ConfiguratorInterface $configurator; + private readonly ConfiguratorInterface $configurator; /** @var FileLoaderInterface[] */ private array $loaders; diff --git a/src/Environment.php b/src/Environment.php index 5fc772c..3316aba 100644 --- a/src/Environment.php +++ b/src/Environment.php @@ -24,7 +24,7 @@ final class Environment implements EnvironmentInterface public function __construct( array $values = [], - private bool $overwrite = false + private readonly bool $overwrite = false ) { $this->values = $values + $_ENV + $_SERVER; }