Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make VisitorArray shape explicit #1675

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix broken phpdoc
ruudk committed Feb 27, 2025

Verified

This commit was signed with the committer’s verified signature.
ruudk Ruud Kamphuis
commit 8adbe70539f47f9390a9aba61b0acbbebf5c5b1b
2 changes: 1 addition & 1 deletion src/Language/Visitor.php
Original file line number Diff line number Diff line change
@@ -596,7 +596,7 @@ public static function visitWithTypeInfo(TypeInfo $typeInfo, array $visitor): ar
/**
* @phpstan-param VisitorArray $visitor
*
* @return callable(Node $node, string $key, Node|NodeList $parent, array<int, int|string $path, array<int, Node|NodeList> $ancestors): VisitorOperation|Node|null
* @return callable(Node $node, string $key, Node|NodeList $parent, array<int, int|string> $path, array<int, Node|NodeList> $ancestors): VisitorOperation|Node|null
*/
protected static function extractVisitFn(array $visitor, string $kind, bool $isLeaving): ?callable
{