|
@@ 25-28 (lines=4) @@
|
| 22 |
|
$lexer = new Lexer\Emulative(); |
| 23 |
|
} |
| 24 |
|
switch ($kind) { |
| 25 |
|
case self::PREFER_PHP7: |
| 26 |
|
return new Parser\Multiple([ |
| 27 |
|
new Parser\Php7($lexer, $parserOptions), new Parser\Php5($lexer, $parserOptions) |
| 28 |
|
]); |
| 29 |
|
case self::PREFER_PHP5: |
| 30 |
|
return new Parser\Multiple([ |
| 31 |
|
new Parser\Php5($lexer, $parserOptions), new Parser\Php7($lexer, $parserOptions) |
|
@@ 29-32 (lines=4) @@
|
| 26 |
|
return new Parser\Multiple([ |
| 27 |
|
new Parser\Php7($lexer, $parserOptions), new Parser\Php5($lexer, $parserOptions) |
| 28 |
|
]); |
| 29 |
|
case self::PREFER_PHP5: |
| 30 |
|
return new Parser\Multiple([ |
| 31 |
|
new Parser\Php5($lexer, $parserOptions), new Parser\Php7($lexer, $parserOptions) |
| 32 |
|
]); |
| 33 |
|
case self::ONLY_PHP7: |
| 34 |
|
return new Parser\Php7($lexer, $parserOptions); |
| 35 |
|
case self::ONLY_PHP5: |