Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 240 Bytes

ImpurePropertyFetch.md

File metadata and controls

16 lines (12 loc) · 240 Bytes

ImpurePropertyFetch

Emitted when fetching a property value inside a function or method marked as pure.

<?php

class A {
    public int $a = 5;
}

/** @psalm-pure */
function foo(int $i, A $a) : int {
    return $i + $a->a;
}