mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Improve some TypeError and ValueError messages
Closes GH-5377
This commit is contained in:
parent
11c5c78401
commit
1f48feebb9
46 changed files with 188 additions and 189 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue