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
Similar to #8537 there is still an issue when a variable is type-hinted with an interface that has a @property, or @property-read declaration. From PHP8.2 onwards PHPStan is unable to recognise these declarations on interfaces.
/** * @property int $x * @property-read int $y * @property-write int $z */interface SampleInterface
{
}
functiontest(SampleInterface$test): void
{
echo$test->x;
echo$test->y;
$test->z = 5;
}