Skip to content

Commit

Permalink
Make more nullable types explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Mar 19, 2024
1 parent f2ab692 commit d8c13d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ParameterBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d8c13d3

Please sign in to comment.