@@ -21,7 +21,7 @@ |
||
| 21 | 21 | return ( |
| 22 | 22 | $parent instanceof ArrayItem && |
| 23 | 23 | false === $this->ignoreArray($parent) |
| 24 | - ) || $parent instanceof ArrayDimFetch; |
|
| 24 | + ) || $parent instanceof ArrayDimFetch; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | private function ignoreArray(ArrayItem $node): bool |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | $parent = ParentConnector::findParent($node); |
| 23 | 23 | |
| 24 | 24 | return ( |
| 25 | - $parent instanceof ArrayItem && |
|
| 25 | + $parent instanceof ArrayItem && |
|
| 26 | 26 | false === $this->ignoreArray($parent) |
| 27 | 27 | ) || $parent instanceof ArrayDimFetch; |
| 28 | 28 | } |
@@ -34,16 +34,16 @@ |
||
| 34 | 34 | public static function create(): self |
| 35 | 35 | { |
| 36 | 36 | return new self([ |
| 37 | - Lexer::class => static function (self $container): Lexer { |
|
| 37 | + Lexer::class => static function(self $container): Lexer { |
|
| 38 | 38 | // For PHP < 8.0 we want to specify a lexer object. |
| 39 | 39 | // Otherwise, the code creates a `Lexer\Emulative()` instance, which by default uses PHP 8 compatibility |
| 40 | 40 | // with e.g. longer list of reserved keywords |
| 41 | 41 | return version_compare('8.0', PHP_VERSION, '<') ? new Lexer() : new Lexer\Emulative(); |
| 42 | 42 | }, |
| 43 | - Parser::class => static function (self $container): Parser { |
|
| 43 | + Parser::class => static function(self $container): Parser { |
|
| 44 | 44 | return (new ParserFactory())->create(ParserFactory::PREFER_PHP7, $container->getLexer()); |
| 45 | 45 | }, |
| 46 | - FileParser::class => static function (self $container): FileParser { |
|
| 46 | + FileParser::class => static function(self $container): FileParser { |
|
| 47 | 47 | return new FileParser($container->getParser()); |
| 48 | 48 | }, |
| 49 | 49 | ]); |