From 611a64cd1f83b4c10cf6959de792323bb0f06891 Mon Sep 17 00:00:00 2001 From: Daniil Date: Mon, 16 Dec 2024 09:30:24 +0300 Subject: [PATCH] Fix strict comparsion for in_array --- src/Support/ReflectionClosure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Support/ReflectionClosure.php b/src/Support/ReflectionClosure.php index e77f2b61..481f2b9f 100644 --- a/src/Support/ReflectionClosure.php +++ b/src/Support/ReflectionClosure.php @@ -508,7 +508,7 @@ public function getCode() break; case 'id_name': switch ($token[0]) { - case $token[0] === ':' && !in_array($context, ['instanceof', 'new']): + case $token[0] === ':' && !in_array($context, ['instanceof', 'new'], true): if ($lastState === 'closure' && $context === 'root') { $state = 'closure'; $code .= $id_start.$token;