Skip to content
Permalink
Browse files

task shortArraySyntaxFixer: parses PHP to correctly recognize keyword…

… 'array'
  • Loading branch information...
dg committed Mar 10, 2019
1 parent 5849d82 commit c4e6c4fc6f22ba397b62a4f420908de9de9dc4ea
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Tasks.php
@@ -53,7 +53,7 @@ public static function shortArraySyntaxFixer(string &$contents, Result $result):
{
$out = '';
$brackets = [];
$tokens = token_get_all($contents);
$tokens = token_get_all($contents, TOKEN_PARSE);
for ($i = 0; $i < count($tokens); $i++) {
$token = $tokens[$i];

0 comments on commit c4e6c4f

Please sign in to comment.
You can’t perform that action at this time.