Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
35 | public static function init(): void |
||
36 | { |
||
37 | if (null !== self::$shell) { |
||
38 | return; |
||
39 | } |
||
40 | |||
41 | if (null === self::$container) { |
||
42 | throw new RuntimeException('Cannot initialize the facade without a container.'); |
||
43 | } |
||
44 | |||
45 | self::$shell = self::$container->get('psysh.shell'); |
||
46 | } |
||
47 | |||
62 |
This method has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the method will be removed from the class and what other method or class to use instead.