Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 244 Bytes

UndefinedMagicMethod.md

File metadata and controls

17 lines (14 loc) · 244 Bytes

UndefinedMagicMethod

Emitted when calling a magic method that does not exist

<?php

/**
 * @method bar():string
 */
class A {
    public function __call(string $name, array $args) {
        return "cool";
    }
}
(new A)->foo();