Improve some TypeError and ValueError messages

Closes GH-5377
This commit is contained in:
Máté Kocsis 2020-04-13 10:41:23 +02:00
parent 11c5c78401
commit 1f48feebb9
No known key found for this signature in database
GPG key ID: FD055E41728BF310
46 changed files with 188 additions and 189 deletions

View file

@ -5335,7 +5335,7 @@ ZEND_METHOD(ReflectionProperty, getValue)
zval rv;
if (!object) {
zend_type_error("No object provided for getValue() on instance property");
zend_argument_type_error(1, "must be provided for instance properties");
RETURN_THROWS();
}
@ -5428,7 +5428,7 @@ ZEND_METHOD(ReflectionProperty, isInitialized)
int retval;
if (!object) {
zend_type_error("No object provided for isInitialized() on instance property");
zend_argument_type_error(1, "must be provided for instance properties");
RETURN_THROWS();
}