Skip to content
This repository was archived by the owner on Sep 19, 2023. It is now read-only.

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Jan 7, 2022

No description provided.

* Find all nodes satisfying a filter callback.
*
* @param Node|Node[] $nodes Single node or array of nodes to search in
* @param callable(Node $node):bool $filter Filter callback: function(Node $node) : bool
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added the more precise callable type here

* Find first node satisfying a filter callback.
*
* @param Node|Node[] $nodes Single node or array of nodes to search in
* @param callable(Node $node):bool $filter Filter callback: function(Node $node) : bool
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and here

@staabm staabm marked this pull request as draft January 7, 2022 15:37
@staabm staabm changed the title define callable signatures for NodeFinder define callable signatures for NodeFinder Jan 7, 2022
@staabm staabm marked this pull request as ready for review January 7, 2022 16:22
@ondrejmirtes
Copy link
Member

How useful this really is? What errors does it help you to find?

@staabm staabm deleted the findre branch March 28, 2022 09:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants