File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -3672,12 +3672,15 @@ static zend_bool preload_try_resolve_property_types(zend_class_entry *ce)
3672
3672
ZEND_HASH_FOREACH_PTR (& ce -> properties_info , prop ) {
3673
3673
zend_type * single_type ;
3674
3674
ZEND_TYPE_FOREACH (prop -> type , single_type ) {
3675
- zend_class_entry * p = preload_fetch_resolved_ce (ZEND_TYPE_NAME (* single_type ), ce );
3676
- if (!p ) {
3677
- ok = 0 ;
3678
- continue ;
3675
+ if (ZEND_TYPE_HAS_NAME (* single_type )) {
3676
+ zend_class_entry * p =
3677
+ preload_fetch_resolved_ce (ZEND_TYPE_NAME (* single_type ), ce );
3678
+ if (!p ) {
3679
+ ok = 0 ;
3680
+ continue ;
3681
+ }
3682
+ ZEND_TYPE_SET_CE (* single_type , p );
3679
3683
}
3680
- ZEND_TYPE_SET_CE (* single_type , p );
3681
3684
} ZEND_TYPE_FOREACH_END ();
3682
3685
} ZEND_HASH_FOREACH_END ();
3683
3686
}
You can’t perform that action at this time.
0 commit comments