From 4d8eaf3c80716e78d0970f43fd14de9418328011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maur=C3=ADcio=20Meneghini=20Fauth?= Date: Wed, 29 Dec 2021 11:39:23 -0300 Subject: [PATCH] Add change log entry for #363 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: MaurĂ­cio Meneghini Fauth --- CHANGELOG.md | 1 + src/Components/AlterOperation.php | 1 - src/Statements/WithStatement.php | 2 -- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ebd80f15..a8cf60991 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## [5.6.0] - YYYY-MM-DD * Add missing return types annotations +* Improve the WITH statements parser (#363) ## [5.5.0] - 2021-12-08 diff --git a/src/Components/AlterOperation.php b/src/Components/AlterOperation.php index 57d3a1a1e..e11165ca0 100644 --- a/src/Components/AlterOperation.php +++ b/src/Components/AlterOperation.php @@ -309,7 +309,6 @@ public static function parse(Parser $parser, TokensList $list, array $options = $state = 2; } elseif ($state === 2) { - $arrayKey = ''; if (is_string($token->value) || is_numeric($token->value)) { $arrayKey = $token->value; } else { diff --git a/src/Statements/WithStatement.php b/src/Statements/WithStatement.php index 8adcba86c..a2fddb2da 100644 --- a/src/Statements/WithStatement.php +++ b/src/Statements/WithStatement.php @@ -265,8 +265,6 @@ public function parse(Parser $parser, TokensList $list) if ($state !== 5) { /** * Token parsed at this moment. - * - * @var Token */ $token = $list->tokens[$list->idx];