Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb committed Aug 28, 2024
1 parent 9114a71 commit 3b3a200
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/reflection/php_reflection.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3b3a200

Please sign in to comment.