Skip to content

Commit 3568fda

Browse files
committed
Comment nits
1 parent 10c252b commit 3568fda

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Zend/zend_inheritance.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,8 @@ static inheritance_status zend_perform_intersection_covariant_class_type_check(
426426
if (!proto_ce) proto_ce = lookup_class(proto_scope, proto_class_name, register_unresolved);
427427
fe_ce = ZEND_TYPE_CE(*single_type);
428428
} else {
429-
/* standard type */
429+
/* standard type in an intersection type is impossible,
430+
* because it would be a fatal compile error */
430431
ZEND_UNREACHABLE();
431432
continue;
432433
}

Zend/zend_types.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ typedef void (*copy_ctor_func_t)(zval *pElement);
109109
* It shouldn't be used directly. Only through ZEND_TYPE_* macros.
110110
*
111111
* ZEND_TYPE_IS_SET() - checks if there is a type-hint
112-
* ZEND_TYPE_IS_ONLY_MASK() - checks if type-hint refer to standard type only
112+
* ZEND_TYPE_IS_ONLY_MASK() - checks if type-hint refer to standard type only
113113
* ZEND_TYPE_HAS_CLASS() - checks if type-hint contains some class
114114
* ZEND_TYPE_HAS_CE() - checks if type-hint contains some class as zend_class_entry *
115115
* ZEND_TYPE_HAS_NAME() - checks if type-hint contains some class as zend_string *

0 commit comments

Comments
 (0)