This commit is contained in:
2025-05-12 14:25:25 +02:00
parent ab2db755ef
commit 9e378ca2b7
2719 changed files with 46505 additions and 60181 deletions

View File

@@ -38,7 +38,7 @@ class ParameterBag implements \IteratorAggregate, \Countable
*
* @param string|null $key The name of the parameter to return or null to get them all
*/
public function all(string $key = null): array
public function all(?string $key = null): array
{
if (null === $key) {
return $this->parameters;
@@ -174,7 +174,7 @@ class ParameterBag implements \IteratorAggregate, \Countable
*
* @return ?T
*/
public function getEnum(string $key, string $class, \BackedEnum $default = null): ?\BackedEnum
public function getEnum(string $key, string $class, ?\BackedEnum $default = null): ?\BackedEnum
{
$value = $this->get($key);