From 1b0501cc2ceb11a2776a98f0b5b77bca81e22f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Chru=C5=9Bciel?= Date: Wed, 20 Apr 2022 15:01:56 +0200 Subject: [PATCH] [Maintenance] Drop Sf4 ACL on parameters class due to lack of its support --- src/Bundle/Controller/Parameters.php | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/Bundle/Controller/Parameters.php b/src/Bundle/Controller/Parameters.php index 66fa0405f..71310a9f2 100644 --- a/src/Bundle/Controller/Parameters.php +++ b/src/Bundle/Controller/Parameters.php @@ -30,25 +30,6 @@ public function get(string $key, $default = null): mixed $result = $default; } - return $result; - } - } -} elseif (Kernel::MAJOR_VERSION === 5) { - class Parameters extends ParameterBag - { - /** - * @param mixed $default - * - * @return mixed - */ - public function get(string $key, $default = null) - { - $result = parent::get($key, $default); - - if (null === $result && $default !== null && $this->has($key)) { - $result = $default; - } - return $result; } } @@ -56,12 +37,11 @@ public function get(string $key, $default = null) class Parameters extends ParameterBag { /** - * @param string $key * @param mixed $default * * @return mixed */ - public function get($key, $default = null) + public function get(string $key, $default = null) { $result = parent::get($key, $default);