Skip to content

Commit 1fe4cd4

Browse files
committed
use older syntax
1 parent f3342d6 commit 1fe4cd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Ast/Type/ArrayShapeNode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(array $items, bool $sealed = true, string $kind = se
3737
* @return array<ArrayShapeItemNode>
3838
*/
3939
public function items(): array {
40-
return array_filter($this->items, fn ($item) => $item instanceof ArrayShapeItemNode);
40+
return array_filter($this->items, function ($item) { return $item instanceof ArrayShapeItemNode; });
4141
}
4242

4343
public function __toString(): string

0 commit comments

Comments
 (0)