Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 237 Bytes

InvalidStaticInvocation.md

File metadata and controls

18 lines (13 loc) · 237 Bytes

InvalidStaticInvocation

Emitted when trying to call an instance function statically

<?php

class A {
    /** @var ?string */
    public $foo;

    public function bar() : void {
        echo $this->foo;
    }
}

A::bar();