From 3b3a2008325a5936bd03bd5616cb827911e927e9 Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Wed, 28 Aug 2024 17:42:39 +0200 Subject: [PATCH] Simplify --- ext/reflection/php_reflection.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 5c43c6004807f..531db004b3ba6 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -5222,8 +5222,7 @@ void reflection_class_new_lazy(INTERNAL_FUNCTION_PARAMETERS, obj = NULL; } - zend_long accepted_flags = ZEND_LAZY_OBJECT_USER_MASK; - if (options & ~accepted_flags) { + if (options & ~ZEND_LAZY_OBJECT_USER_MASK) { uint32_t arg_num = 2 + is_reset; zend_argument_error(reflection_exception_ptr, arg_num, "contains invalid flags");