Skip to content

Commit 36e1469

Browse files
gen_stub: use first class callables where possible
1 parent 362f5fd commit 36e1469

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build/gen_stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ class Type {
486486

487487
public static function fromNode(Node $node): Type {
488488
if ($node instanceof Node\UnionType || $node instanceof Node\IntersectionType) {
489-
$nestedTypeObjects = array_map(['Type', 'fromNode'], $node->types);
489+
$nestedTypeObjects = array_map(Type::fromNode(...), $node->types);
490490
$types = [];
491491
foreach ($nestedTypeObjects as $typeObject) {
492492
array_push($types, ...$typeObject->types);

0 commit comments

Comments
 (0)