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 7
7
namespace Microsoft \PhpParser ;
8
8
9
9
/**
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.
11
11
*
12
12
* Initially we tried hand-spinning the lexer (see `experiments/Lexer.php`), but we had difficulties optimizing
13
13
* performance (especially when working with Unicode characters.)
@@ -58,7 +58,7 @@ public static function getTokensArrayFromContent(
58
58
$ passedPrefix = false ;
59
59
}
60
60
61
- $ tokens = \token_get_all ($ content );
61
+ $ tokens = @ \token_get_all ($ content );
62
62
63
63
$ arr = array ();
64
64
$ fullStart = $ start = $ pos = $ initialPos ;
You can’t perform that action at this time.
0 commit comments