Skip to content

Commit 2032469

Browse files
author
Greg Bowler
committed
Allow passing callable types
1 parent a66ad6e commit 2032469

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NullableTypeSafeGetter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function(string|int $value) {
3232
);
3333
}
3434

35-
protected function getNullableType(string $name, string $type):mixed {
35+
protected function getNullableType(string $name, string|callable $type):mixed {
3636
$value = $this->get($name);
3737
if(is_null($value)) {
3838
return null;

0 commit comments

Comments
 (0)