mirror of
https://github.com/danog/psalm.git
synced 2024-12-06 05:29:00 +01:00
252 B
252 B
ImpurePropertyAssignment
Emitted when updating a property value from a function or method marked as pure.
<?php
class A {
public int $a = 5;
}
/** @psalm-pure */
function foo(int $i, A $a) : int {
$a->a = $i;
return $i;
}