Skip to content

Commit 9a77080

Browse files
chxiluuu1994
andauthored
Apply suggestions from code review
Co-authored-by: Ilija Tovilo <[email protected]>
1 parent 4445064 commit 9a77080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_inheritance.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1507,7 +1507,7 @@ static void do_inherit_property(zend_property_info *parent_info, zend_string *ke
15071507
}
15081508
} else if (UNEXPECTED(ZEND_TYPE_IS_SET(child_info->type) && !ZEND_TYPE_IS_SET(parent_info->type))) {
15091509
zend_error_noreturn(E_COMPILE_ERROR,
1510-
"Type of %s::$%s must not be defined (it must match the definition in class %s)",
1510+
"Type of %s::$%s must be omitted to match the parent definition in class %s",
15111511
ZSTR_VAL(ce->name),
15121512
ZSTR_VAL(key),
15131513
ZSTR_VAL(parent_info->ce->name));

0 commit comments

Comments
 (0)