File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -2343,18 +2343,17 @@ void zend_inheritance_check_override(const zend_class_entry *ce)
2343
2343
ZSTR_VAL (ce -> name ), zend_get_unmangled_property_name (prop -> name ));
2344
2344
}
2345
2345
2346
- if (!prop -> hooks ) {
2347
- continue ;
2348
- }
2349
- for (uint32_t i = 0 ; i < ZEND_PROPERTY_HOOK_COUNT ; i ++ ) {
2350
- f = prop -> hooks [i ];
2351
- if (f && f -> common .fn_flags & ZEND_ACC_OVERRIDE ) {
2352
- ZEND_ASSERT (f -> type != ZEND_INTERNAL_FUNCTION );
2353
-
2354
- zend_error_at_noreturn (
2355
- E_COMPILE_ERROR , f -> op_array .filename , f -> op_array .line_start ,
2356
- "%s::%s() has #[\\Override] attribute, but no matching parent method exists" ,
2357
- ZEND_FN_SCOPE_NAME (f ), ZSTR_VAL (f -> common .function_name ));
2346
+ if (prop -> hooks ) {
2347
+ for (uint32_t i = 0 ; i < ZEND_PROPERTY_HOOK_COUNT ; i ++ ) {
2348
+ f = prop -> hooks [i ];
2349
+ if (f && f -> common .fn_flags & ZEND_ACC_OVERRIDE ) {
2350
+ ZEND_ASSERT (f -> type != ZEND_INTERNAL_FUNCTION );
2351
+
2352
+ zend_error_at_noreturn (
2353
+ E_COMPILE_ERROR , f -> op_array .filename , f -> op_array .line_start ,
2354
+ "%s::%s() has #[\\Override] attribute, but no matching parent method exists" ,
2355
+ ZEND_FN_SCOPE_NAME (f ), ZSTR_VAL (f -> common .function_name ));
2356
+ }
2358
2357
}
2359
2358
}
2360
2359
} ZEND_HASH_FOREACH_END ();
You can’t perform that action at this time.
0 commit comments