From 58e212631831af2d3668397b5b74123580233bb5 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sun, 11 Jan 2015 20:46:25 +0100 Subject: [PATCH] #7095 - removing `T_TRAIT` polyfill: `T_TRAIT` is available since PHP 5.4 --- library/Zend/Code/Scanner/TokenArrayScanner.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/library/Zend/Code/Scanner/TokenArrayScanner.php b/library/Zend/Code/Scanner/TokenArrayScanner.php index 4abc603760a..3252c29c681 100644 --- a/library/Zend/Code/Scanner/TokenArrayScanner.php +++ b/library/Zend/Code/Scanner/TokenArrayScanner.php @@ -298,13 +298,6 @@ protected function scan() throw new Exception\RuntimeException('No tokens were provided'); } - /** - * Define PHP 5.4 'trait' token constant. - */ - if (!defined('T_TRAIT')) { - define('T_TRAIT', 42001); - } - /** * Variables & Setup */