File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 77namespace Microsoft \PhpParser ;
88
99/**
10- * Tokenizes content using PHP's built-in `tokens_get_all `, and converts to "lightweight" Token representation.
10+ * Tokenizes content using PHP's built-in `token_get_all `, and converts to "lightweight" Token representation.
1111 *
1212 * Initially we tried hand-spinning the lexer (see `experiments/Lexer.php`), but we had difficulties optimizing
1313 * performance (especially when working with Unicode characters.)
@@ -58,7 +58,7 @@ public static function getTokensArrayFromContent(
5858 $ passedPrefix = false ;
5959 }
6060
61- $ tokens = \token_get_all ($ content );
61+ $ tokens = @ \token_get_all ($ content );
6262
6363 $ arr = array ();
6464 $ fullStart = $ start = $ pos = $ initialPos ;
You can’t perform that action at this time.
0 commit comments