1 | <?php |
||
11 | final class Kernel |
||
12 | { |
||
13 | /** @var Container */ |
||
14 | private static $instance; |
||
15 | |||
16 | /** |
||
17 | * Get container service |
||
18 | * |
||
19 | * @return Container |
||
20 | */ |
||
21 | public static function getContainer(): Container |
||
30 | |||
31 | /** @inheritdoc */ |
||
32 | private function __construct() {} |
||
33 | |||
34 | /** @inheritdoc */ |
||
35 | private function __clone() {} |
||
36 | |||
37 | /** @inheritdoc */ |
||
38 | private function __wakeup() {} |
||
39 | } |
Late static binding only has effect in subclasses. A
final
class cannot be extended anymore so late static binding cannot occurr. Consider replacingstatic::
withself::
.To learn more about late static binding, please refer to the PHP core documentation.