Unpacking associative arrays in PHP 8.1 produces Squiz.Arrays.ArrayDeclaration.NoKeySpecified
respectively Squiz.Arrays.ArrayDeclaration.KeySpecified
#3557
Labels
Milestone
Describe the bug
Since PHP 8.1 unpacking of associative arrays is supported.
Unpacking an associative array into another results in one of the errors
Squiz.Arrays.ArrayDeclaration.NoKeySpecified
orSquiz.Arrays.ArrayDeclaration.KeySpecified
(depending on the position).Code sample
Custom ruleset
To reproduce
Expected behavior
This should not result in an error:
Versions:
The text was updated successfully, but these errors were encountered: