Skip to content

Commit 46418d5

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 e19ff85 commit 46418d5

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
@@ -1591,7 +1591,6 @@ C23_ENUM(zpp_error, uint8_t) {
15911591
ZPP_ERROR_WRONG_CLASS_OR_LONG = 7,
15921592
ZPP_ERROR_WRONG_CLASS_OR_LONG_OR_NULL = 8,
15931593
ZPP_ERROR_WRONG_ARG = 9,
1594-
ZPP_ERROR_WRONG_COUNT = 10,
15951594
ZPP_ERROR_UNEXPECTED_EXTRA_NAMED = 11,
15961595
ZPP_ERROR_WRONG_CALLBACK_OR_NULL = 12
15971596
};

0 commit comments

Comments
 (0)