Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 195 Bytes

DontCall.md

File metadata and controls

14 lines (10 loc) · 195 Bytes

DontCall

Prevent calling of undefined methods.

use Dont\DontCall;

class MyClass
{
    use DontCall;
}

(new MyClass)->undefinedMethod(); // will throw NonCallableObject exception