1 | <?php |
||
13 | class CertificateException extends \RuntimeException implements ExceptionInterface |
||
14 | { |
||
15 | public static function unableToRead() |
||
19 | |||
20 | public static function unableToOpen() |
||
24 | |||
25 | public static function signContent() |
||
31 | |||
32 | public static function getPrivateKey() |
||
36 | |||
37 | private static function getOpenSSLError() |
||
45 | } |
||
46 |
Let’s assume you have a class which uses late-static binding:
}
The code above will run fine in your PHP runtime. However, if you now create a sub-class and call the
getSomeVariable()
on that sub-class, you will receive a runtime error:In the case above, it makes sense to update
SomeClass
to useself
instead: