Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 219 Bytes

DontCallStatic.md

File metadata and controls

14 lines (10 loc) · 219 Bytes

DontCallStatic

Prevent calling of undefined static methods.

use Dont\DontCallStatic;

class MyClass
{
    use DontCallStatic;
}

MyClass::undefinedMethod(); // will throw NonStaticCallableClass exception