mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
301 B
301 B
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) {}
}