File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Zend/tests/type_declarations/dnf_types/variance Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
--TEST--
2
2
Covariant replacement of iterable type with intersection type in DNF type
3
- --XFAIL--
4
- Issue with delayed variance
5
3
--FILE--
6
4
<?php
7
5
Original file line number Diff line number Diff line change @@ -379,6 +379,10 @@ static void zend_persist_type(zend_type *type) {
379
379
380
380
zend_type * single_type ;
381
381
ZEND_TYPE_FOREACH (* type , single_type ) {
382
+ if (ZEND_TYPE_HAS_LIST (* single_type )) {
383
+ zend_persist_type (single_type );
384
+ continue ;
385
+ }
382
386
if (ZEND_TYPE_HAS_NAME (* single_type )) {
383
387
zend_string * type_name = ZEND_TYPE_NAME (* single_type );
384
388
zend_accel_store_interned_string (type_name );
Original file line number Diff line number Diff line change @@ -187,6 +187,10 @@ static void zend_persist_type_calc(zend_type *type)
187
187
188
188
zend_type * single_type ;
189
189
ZEND_TYPE_FOREACH (* type , single_type ) {
190
+ if (ZEND_TYPE_HAS_LIST (* single_type )) {
191
+ zend_persist_type_calc (single_type );
192
+ continue ;
193
+ }
190
194
if (ZEND_TYPE_HAS_NAME (* single_type )) {
191
195
zend_string * type_name = ZEND_TYPE_NAME (* single_type );
192
196
ADD_INTERNED_STRING (type_name );
You can’t perform that action at this time.
0 commit comments