Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 301 Bytes

NoInterfaceProperties.md

File metadata and controls

16 lines (13 loc) · 301 Bytes

NoInterfaceProperties

Emitted when trying to fetch a property on an interface as interfaces, by definition, do not have definitions for properties.

<?php

interface I {}
class A implements I {
    /** @var ?string */
    public $foo;
}
function bar(I $i) : void {
    if ($i->foo) {}
}