Skip to content

Commit bbf82d7

Browse files
committed
Zend: Remove ZPP_ERROR_WRONG_COUNT case
As it is unused, the relevant error is handled before and _error_code is assigned ZPP_ERROR_FAILURE.
1 parent add8d54 commit bbf82d7

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

Zend/zend_API.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,6 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameter_error(zpp_error error
262262
ZEND_ASSERT(EG(exception) && "Should have produced an error already");
263263
break;
264264
case ZPP_ERROR_OK:
265-
case ZPP_ERROR_WRONG_COUNT:
266265
ZEND_UNREACHABLE();
267266
}
268267
}

Zend/zend_API.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1599,7 +1599,6 @@ C23_ENUM(zpp_error, uint8_t) {
15991599
ZPP_ERROR_WRONG_CLASS_OR_LONG,
16001600
ZPP_ERROR_WRONG_CLASS_OR_LONG_OR_NULL,
16011601
ZPP_ERROR_WRONG_ARG,
1602-
ZPP_ERROR_WRONG_COUNT,
16031602
ZPP_ERROR_UNEXPECTED_EXTRA_NAMED,
16041603
ZPP_ERROR_WRONG_CALLBACK_OR_NULL,
16051604
};

0 commit comments

Comments
 (0)