diff --git a/.travis.yml b/.travis.yml index 47169154..933600fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,6 @@ cache: - $HOME/.composer/cache php: - - 5.4 - 5.5 - 5.6 - 7.0 diff --git a/composer.json b/composer.json index 74b96455..dba8d3ad 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": ">=5.4", + "php": ">=5.5", "ext-tokenizer": "*" }, "require-dev": { diff --git a/lib/PhpParser/Lexer/Emulative.php b/lib/PhpParser/Lexer/Emulative.php index 257f0868..d55e2d4e 100644 --- a/lib/PhpParser/Lexer/Emulative.php +++ b/lib/PhpParser/Lexer/Emulative.php @@ -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();