We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c099713 commit 2224f63Copy full SHA for 2224f63
ext/opcache/Optimizer/zend_inference.c
@@ -2180,12 +2180,13 @@ static uint32_t zend_convert_type_declaration_mask(uint32_t type_mask) {
2180
uint32_t zend_fetch_arg_info_type(const zend_script *script, zend_arg_info *arg_info, zend_class_entry **pce)
2181
{
2182
uint32_t tmp;
2183
+
2184
+ *pce = NULL;
2185
if (!ZEND_TYPE_IS_SET(arg_info->type)) {
2186
return MAY_BE_ANY|MAY_BE_ARRAY_KEY_ANY|MAY_BE_ARRAY_OF_ANY|MAY_BE_ARRAY_OF_REF|MAY_BE_RC1|MAY_BE_RCN;
2187
}
2188
2189
tmp = zend_convert_type_declaration_mask(ZEND_TYPE_PURE_MASK(arg_info->type));
- *pce = NULL;
2190
if (ZEND_TYPE_HAS_CLASS(arg_info->type)) {
2191
tmp |= MAY_BE_OBJECT;
2192
/* As we only have space to store one CE, we use a plain object type for class unions. */
0 commit comments