File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,8 @@ static inheritance_status zend_perform_intersection_covariant_class_type_check(
426
426
if (!proto_ce ) proto_ce = lookup_class (proto_scope , proto_class_name , register_unresolved );
427
427
fe_ce = ZEND_TYPE_CE (* single_type );
428
428
} else {
429
- /* standard type */
429
+ /* standard type in an intersection type is impossible,
430
+ * because it would be a fatal compile error */
430
431
ZEND_UNREACHABLE ();
431
432
continue ;
432
433
}
Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ typedef void (*copy_ctor_func_t)(zval *pElement);
109
109
* It shouldn't be used directly. Only through ZEND_TYPE_* macros.
110
110
*
111
111
* 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
113
113
* ZEND_TYPE_HAS_CLASS() - checks if type-hint contains some class
114
114
* ZEND_TYPE_HAS_CE() - checks if type-hint contains some class as zend_class_entry *
115
115
* ZEND_TYPE_HAS_NAME() - checks if type-hint contains some class as zend_string *
You can’t perform that action at this time.
0 commit comments