You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A signature such as public function find($id, $columns = ['*']) contains an Array_ expression, which itself contains $items = []. When we iterate over the properties of a node, we should check if it is an array and if so, test if each corresponding elements is a \PhpParser\Node (and recursively call Node::isEqual) or directly compare the two.
Another simple and dirty solution would be to reuse the code in \PHPSemVerChecker\Comparator\Implementation (using the \PhpParser\NodeDumper and check for dump identicality).
Affected version: 0.10.0
The text was updated successfully, but these errors were encountered:
A signature such as
public function find($id, $columns = ['*'])
contains anArray_
expression, which itself contains$items = []
. When we iterate over the properties of a node, we should check if it is an array and if so, test if each corresponding elements is a\PhpParser\Node
(and recursively callNode::isEqual
) or directly compare the two.Another simple and dirty solution would be to reuse the code in
\PHPSemVerChecker\Comparator\Implementation
(using the\PhpParser\NodeDumper
and check for dump identicality).Affected version: 0.10.0
The text was updated successfully, but these errors were encountered: