Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
40 | private static function install(string $fileName) |
||
41 | { |
||
42 | $yaml = Yaml::parse( |
||
43 | file_get_contents( |
||
44 | $fileName |
||
45 | ) |
||
46 | ); |
||
47 | $app = new Application( |
||
48 | self::TITLE, |
||
49 | Versions::getVersion('api-clients/installer') |
||
50 | ); |
||
51 | $app->add((new Install(Install::COMMAND))->setYaml($yaml)); |
||
52 | $app->find(Install::COMMAND)->run(new ArgvInput([]), new ConsoleOutput()); |
||
53 | } |
||
54 | } |
||
55 |
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.