diff --git a/README.md b/README.md index 4488822..57f7603 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +# This branch is auto generated [![Download](https://img.shields.io/packagist/dt/unleash/symfony-client-bundle.svg)](https://packagist.org/packages/unleash/symfony-client-bundle) A Symfony bundle for PHP implementation of the [Unleash protocol](https://www.getunleash.io/) diff --git a/composer.json b/composer.json index 1685e53..047ef1c 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "symfony/cache": "^5.0 | ^6.0 | ^7.0", "nyholm/psr7": "^1.0", "unleash/client": "^2.4", - "php": "^8.2" + "php": "^8.1" }, "autoload": { "psr-4": { diff --git a/src/Context/SymfonyContextProvider.php b/src/Context/SymfonyContextProvider.php index c1c6eec..331d7bf 100644 --- a/src/Context/SymfonyContextProvider.php +++ b/src/Context/SymfonyContextProvider.php @@ -5,10 +5,10 @@ use Unleash\Client\Configuration\Context; use Unleash\Client\ContextProvider\UnleashContextProvider; -final readonly class SymfonyContextProvider implements UnleashContextProvider +final class SymfonyContextProvider implements UnleashContextProvider { public function __construct( - private SymfonyUnleashContext $context + private readonly SymfonyUnleashContext $context ) { } diff --git a/src/DependencyInjection/Compiler/BootstrapResolver.php b/src/DependencyInjection/Compiler/BootstrapResolver.php index bf9beed..6411b3f 100644 --- a/src/DependencyInjection/Compiler/BootstrapResolver.php +++ b/src/DependencyInjection/Compiler/BootstrapResolver.php @@ -12,7 +12,7 @@ /** * @todo Make internal in next major */ -final readonly class BootstrapResolver implements CompilerPassInterface +final class BootstrapResolver implements CompilerPassInterface { private const TAG = 'unleash.client.bootstrap_provider'; diff --git a/src/DependencyInjection/Compiler/CacheServiceResolverCompilerPass.php b/src/DependencyInjection/Compiler/CacheServiceResolverCompilerPass.php index 2f55350..3985375 100644 --- a/src/DependencyInjection/Compiler/CacheServiceResolverCompilerPass.php +++ b/src/DependencyInjection/Compiler/CacheServiceResolverCompilerPass.php @@ -14,7 +14,7 @@ /** * @todo Make internal in next major */ -final readonly class CacheServiceResolverCompilerPass implements CompilerPassInterface +final class CacheServiceResolverCompilerPass implements CompilerPassInterface { public function process(ContainerBuilder $container): void { diff --git a/src/DependencyInjection/Compiler/HttpServicesResolverCompilerPass.php b/src/DependencyInjection/Compiler/HttpServicesResolverCompilerPass.php index b0c2cb5..d741992 100644 --- a/src/DependencyInjection/Compiler/HttpServicesResolverCompilerPass.php +++ b/src/DependencyInjection/Compiler/HttpServicesResolverCompilerPass.php @@ -15,7 +15,7 @@ /** * @todo Make internal in next major */ -final readonly class HttpServicesResolverCompilerPass implements CompilerPassInterface +final class HttpServicesResolverCompilerPass implements CompilerPassInterface { public function process(ContainerBuilder $container): void { diff --git a/src/DependencyInjection/Configuration.php b/src/DependencyInjection/Configuration.php index 674c6a4..a35abd8 100644 --- a/src/DependencyInjection/Configuration.php +++ b/src/DependencyInjection/Configuration.php @@ -15,13 +15,13 @@ /** * @todo Make internal in next major */ -final readonly class Configuration implements ConfigurationInterface +final class Configuration implements ConfigurationInterface { /** * @param array $defaultStrategyNames */ public function __construct( - private array $defaultStrategyNames, + private readonly array $defaultStrategyNames, ) { } diff --git a/src/DependencyInjection/Dsn/LateBoundDsnParameter.php b/src/DependencyInjection/Dsn/LateBoundDsnParameter.php index 76d2710..6aa2c17 100644 --- a/src/DependencyInjection/Dsn/LateBoundDsnParameter.php +++ b/src/DependencyInjection/Dsn/LateBoundDsnParameter.php @@ -4,11 +4,11 @@ use Stringable; -final readonly class LateBoundDsnParameter implements Stringable +final class LateBoundDsnParameter implements Stringable { public function __construct( - private string $envName, - private string $parameter, + private readonly string $envName, + private readonly string $parameter, ) { } diff --git a/src/DependencyInjection/Dsn/StaticStringableParameter.php b/src/DependencyInjection/Dsn/StaticStringableParameter.php index 1476477..0b09082 100644 --- a/src/DependencyInjection/Dsn/StaticStringableParameter.php +++ b/src/DependencyInjection/Dsn/StaticStringableParameter.php @@ -4,10 +4,10 @@ use Stringable; -final readonly class StaticStringableParameter implements Stringable +final class StaticStringableParameter implements Stringable { public function __construct( - private string $value, + private readonly string $value, ) { } diff --git a/src/Event/UnleashEvents.php b/src/Event/UnleashEvents.php index 7ea2bb9..ae79068 100644 --- a/src/Event/UnleashEvents.php +++ b/src/Event/UnleashEvents.php @@ -2,7 +2,7 @@ namespace Unleash\Client\Bundle\Event; -final readonly class UnleashEvents +final class UnleashEvents { /** * @Event("Unleash\Client\Bundle\Event\ContextValueNotFoundEvent") diff --git a/src/Listener/ControllerAttributeResolver.php b/src/Listener/ControllerAttributeResolver.php index 3e57207..3c1e677 100644 --- a/src/Listener/ControllerAttributeResolver.php +++ b/src/Listener/ControllerAttributeResolver.php @@ -25,11 +25,11 @@ use Unleash\Client\Exception\InvalidValueException; use Unleash\Client\Unleash; -final readonly class ControllerAttributeResolver implements EventSubscriberInterface +final class ControllerAttributeResolver implements EventSubscriberInterface { public function __construct( - private Unleash $unleash, - private EventDispatcherInterface $eventDispatcher, + private readonly Unleash $unleash, + private readonly EventDispatcherInterface $eventDispatcher, ) { } diff --git a/src/Twig/UnleashTwigRuntime.php b/src/Twig/UnleashTwigRuntime.php index f477141..b5f38a2 100644 --- a/src/Twig/UnleashTwigRuntime.php +++ b/src/Twig/UnleashTwigRuntime.php @@ -7,10 +7,10 @@ use Unleash\Client\DTO\Variant; use Unleash\Client\Unleash; -final readonly class UnleashTwigRuntime implements RuntimeExtensionInterface +final class UnleashTwigRuntime implements RuntimeExtensionInterface { public function __construct( - private Unleash $unleash, + private readonly Unleash $unleash, ) { } diff --git a/src/Unleash/UnleashDecorator.php b/src/Unleash/UnleashDecorator.php index af6af32..0345686 100644 --- a/src/Unleash/UnleashDecorator.php +++ b/src/Unleash/UnleashDecorator.php @@ -14,16 +14,16 @@ use Unleash\Client\Unleash; use Unleash\Client\Variant\VariantHandler; -final readonly class UnleashDecorator implements Unleash +final class UnleashDecorator implements Unleash { - private Unleash $proxy; + private readonly Unleash $proxy; /** * @param array $disabledHandlers * @param iterable $strategyHandlers */ public function __construct( - private array $disabledHandlers, + private readonly array $disabledHandlers, iterable $strategyHandlers, UnleashRepository $repository, RegistrationService $registrationService,