From 79d237c8b61014c7ef171883e116e5bd28eab2ff Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Thu, 29 Apr 2021 21:23:58 +0200 Subject: [PATCH] Remove some unnecessary exception type checks These types are enforced by typed properties now. --- Zend/zend_exceptions.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 1c813866aa8..4cf49320a73 100644 --- a/Zend/zend_exceptions.c +++ b/Zend/zend_exceptions.c @@ -335,12 +335,9 @@ ZEND_METHOD(Exception, __wakeup) zval value, *pvalue; zval *object = ZEND_THIS; - CHECK_EXC_TYPE(ZEND_STR_MESSAGE, IS_STRING); - CHECK_EXC_TYPE(ZEND_STR_STRING, IS_STRING); - CHECK_EXC_TYPE(ZEND_STR_CODE, IS_LONG); - CHECK_EXC_TYPE(ZEND_STR_FILE, IS_STRING); - CHECK_EXC_TYPE(ZEND_STR_LINE, IS_LONG); - /* The type of $trace and $previous is enforced through typed properties. */ + CHECK_EXC_TYPE(ZEND_STR_MESSAGE, IS_STRING); + CHECK_EXC_TYPE(ZEND_STR_CODE, IS_LONG); + /* The type of all other properties is enforced through typed properties. */ } /* }}} */