1
0
mirror of https://github.com/danog/PHP-Parser.git synced 2024-11-26 20:04:48 +01:00

Remove support for PHP 5.4

This commit is contained in:
Nikita Popov 2016-07-05 22:29:41 +02:00
parent 225804c147
commit 038e11da4b
3 changed files with 2 additions and 7 deletions

View File

@ -7,7 +7,6 @@ cache:
- $HOME/.composer/cache
php:
- 5.4
- 5.5
- 5.6
- 7.0

View File

@ -10,7 +10,7 @@
}
],
"require": {
"php": ">=5.4",
"php": ">=5.5",
"ext-tokenizer": "*"
},
"require-dev": {

View File

@ -21,16 +21,12 @@ class Emulative extends \PhpParser\Lexer
const PHP_7_0 = '7.0.0dev';
const PHP_5_6 = '5.6.0rc1';
const PHP_5_5 = '5.5.0beta1';
public function __construct(array $options = array()) {
parent::__construct($options);
$newKeywordsPerVersion = array(
self::PHP_5_5 => array(
'finally' => Tokens::T_FINALLY,
'yield' => Tokens::T_YIELD,
),
// No new keywords since PHP 5.5
);
$this->newKeywords = array();