mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Fix the 2nd buglet in the error message :)
This commit is contained in:
parent
fc591167ad
commit
b39b33c4c5
1 changed files with 1 additions and 1 deletions
|
@ -1596,7 +1596,7 @@ static zend_bool do_inherit_method_check(HashTable *child_function_table, zend_f
|
|||
/* Prevent derived classes from restricting access that was available in parent classes
|
||||
*/
|
||||
if ((child_flags & ZEND_ACC_PPP_MASK) > (parent_flags & ZEND_ACC_PPP_MASK)) {
|
||||
zend_error(E_COMPILE_ERROR, "Access level to %s::%s() must be %s (as in class %s)%s", ZEND_FN_SCOPE_NAME(child), child->common.function_name, zend_visibility_string(parent_flags), ZEND_FN_SCOPE_NAME(child), (parent_flags&ZEND_ACC_PUBLIC) ? "" : " or weaker");
|
||||
zend_error(E_COMPILE_ERROR, "Access level to %s::%s() must be %s (as in class %s)%s", ZEND_FN_SCOPE_NAME(child), child->common.function_name, zend_visibility_string(parent_flags), ZEND_FN_SCOPE_NAME(parent), (parent_flags&ZEND_ACC_PUBLIC) ? "" : " or weaker");
|
||||
} else if (((child_flags & ZEND_ACC_PPP_MASK) < (parent_flags & ZEND_ACC_PPP_MASK))
|
||||
&& ((parent_flags & ZEND_ACC_PPP_MASK) & ZEND_ACC_PRIVATE)) {
|
||||
child->common.fn_flags |= ZEND_ACC_CHANGED;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue