Skip to content

Commit

Permalink
Hotfix: make closure static
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Feb 16, 2021
1 parent 5fafcb5 commit 3ad2157
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArgumentException.php
Expand Up @@ -53,7 +53,7 @@ private function getClosureSignature(\ReflectionFunctionAbstract $reflection): s
$parameterString .= $type->getName() . ' ';
} elseif ($type instanceof ReflectionUnionType) {
$parameterString .= implode('|', array_map(
fn (ReflectionNamedType $r) => $r->getName(),
static fn (ReflectionNamedType $r) => $r->getName(),
$type->getTypes()
)) . ' ';
}
Expand Down

0 comments on commit 3ad2157

Please sign in to comment.