From d8c13d35f68c69e15595fe37fa2c225d11c10f7e Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Tue, 19 Mar 2024 11:13:26 +0100 Subject: [PATCH] Make more nullable types explicit --- ParameterBag.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ParameterBag.php b/ParameterBag.php index e1f89d69e..b542292bc 100644 --- a/ParameterBag.php +++ b/ParameterBag.php @@ -39,7 +39,7 @@ public function __construct(array $parameters = []) * * @return array */ - public function all(/* string $key = null */) + public function all(/* ?string $key = null */) { $key = \func_num_args() > 0 ? func_get_arg(0) : null;