Properties passed as arg 1 to array_pop
are mutated, but checks for pure methods do not see the property as mutated
#9429
Labels
array_pop
are mutated, but checks for pure methods do not see the property as mutated
#9429
See example: https://psalm.dev/r/b0916c1ed2
I'd expect line 16 to be reported as an error. Something along the lines of:
ImpurePropertyAssignment - 16:9 - Cannot assign to a property from a mutation-free context
The text was updated successfully, but these errors were encountered: