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