1 | <?php |
||
9 | class NonStaticCallableClass extends LogicException implements ExceptionInterface |
||
10 | { |
||
11 | private const ERROR_TEMPLATE = <<<'ERROR' |
||
12 | The given class %s is not designed to allow any undefined or inaccessible static methods to be called. |
||
13 | |||
14 | You tried to call a static method called "%s". |
||
15 | |||
16 | Perhaps you made a typo in the method name, or tried to call an inaccessible method? |
||
17 | ERROR; |
||
18 | |||
19 | /** |
||
20 | * @throws TypeError |
||
21 | */ |
||
22 | 3 | public static function fromAttemptedStaticCall(string $class, string $method) : self |
|
30 | } |
||
31 |