Skip to content

Commit 130c85b

Browse files
author
Bernhard Schmitt
committed
Make nullability explicit
1 parent 18eec8e commit 130c85b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Classes/Application/EnumProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ final class EnumProvider extends AbstractDataSource implements ProtectedContextA
3636
* @param array<string|int,string> $arguments
3737
* @return array<string|int,array<string,string>>
3838
*/
39-
public function getData(NodeInterface $node = null, array $arguments = []): array
39+
public function getData(?NodeInterface $node = null, array $arguments = []): array
4040
{
4141
if (!array_key_exists('enumName', $arguments) || !is_string($arguments['enumName'])) {
4242
throw new \InvalidArgumentException('Argument "enumName" must be provided.', 1625297174);

0 commit comments

Comments
 (0)