From dce1a16bc350b99b061854cc3b8600b53f97a8eb Mon Sep 17 00:00:00 2001 From: Emir Beganovic Date: Fri, 10 Nov 2017 01:16:01 +0000 Subject: [PATCH] Fix syntax error --- .../Source/Language/PHP/PHPTokenizerHelperVersion52.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/php/PDepend/Source/Language/PHP/PHPTokenizerHelperVersion52.php b/src/main/php/PDepend/Source/Language/PHP/PHPTokenizerHelperVersion52.php index f3c862c2b5..3fce1bf6e4 100644 --- a/src/main/php/PDepend/Source/Language/PHP/PHPTokenizerHelperVersion52.php +++ b/src/main/php/PDepend/Source/Language/PHP/PHPTokenizerHelperVersion52.php @@ -115,9 +115,10 @@ public static function tokenize($source) */ private static function doTokenize($source) { - if (version_compare(phpversion(), '5.3.0alpha3') < 0) + if (version_compare(phpversion(), '5.3.0alpha3') < 0) { ini_set('track_errors', 'on'); } + $php_errormsg = null; $tokens = @token_get_all($source);