From 3cf64393b097c2cc45c983788935cc4723ac2e1f Mon Sep 17 00:00:00 2001 From: Anton Vasiliev <1695147@gmail.com> Date: Sun, 29 Oct 2023 10:39:34 +0000 Subject: [PATCH] #2407 - Fix CS --- Library/Passes/LocalContextPass.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Passes/LocalContextPass.php b/Library/Passes/LocalContextPass.php index 395fc75fb..efa8cb5ac 100644 --- a/Library/Passes/LocalContextPass.php +++ b/Library/Passes/LocalContextPass.php @@ -56,8 +56,7 @@ public function declareVariables(array $statement): void foreach ($statement['variables'] as $variable) { if (isset($variable['expr'])) { - if ( - 'string' === $variable['expr']['type'] + if ('string' === $variable['expr']['type'] || 'empty-array' === $variable['expr']['type'] || 'array' === $variable['expr']['type'] ) {