From 202e1d9c097eea4bec9e96aa338b38a5e21afcca Mon Sep 17 00:00:00 2001 From: Ricardo Siqueira Date: Tue, 13 Dec 2016 02:01:08 -0200 Subject: [PATCH] check if variable isset --- lib/ReflectionClosure.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ReflectionClosure.php b/lib/ReflectionClosure.php index 52bdfb6..efa394b 100644 --- a/lib/ReflectionClosure.php +++ b/lib/ReflectionClosure.php @@ -287,7 +287,7 @@ public function getCode() if ($name[0] == '\\' || ($selfOrStatic = ($name == 'static' || $name == 'self'))) { $code .= $buffer . ($is_array ? $token[1] : $token); - if($selfOrStatic){ + if(isset($selfOrStatic) && $selfOrStatic){ $isUsingScope = true; } } elseif ($new_key_word || ($is_array && ($token[0] == T_VARIABLE || $token[0] == T_DOUBLE_COLON))) {