diff options
Diffstat (limited to 'ext/reflection')
-rw-r--r-- | ext/reflection/php_reflection.c | 4 | ||||
-rw-r--r-- | ext/reflection/tests/ReflectionProperty_getValue_error.phpt | 2 | ||||
-rw-r--r-- | ext/reflection/tests/ReflectionProperty_isInitialized.phpt | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 6023ef0c0d..e23f0076a9 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -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(); } diff --git a/ext/reflection/tests/ReflectionProperty_getValue_error.phpt b/ext/reflection/tests/ReflectionProperty_getValue_error.phpt index c5da067c32..40254319cc 100644 --- a/ext/reflection/tests/ReflectionProperty_getValue_error.phpt +++ b/ext/reflection/tests/ReflectionProperty_getValue_error.phpt @@ -66,4 +66,4 @@ Invalid instance: Given object is not an instance of the class this property was declared in Missing instance: -No object provided for getValue() on instance property +ReflectionProperty::getValue(): Argument #1 ($object) must be provided for instance properties diff --git a/ext/reflection/tests/ReflectionProperty_isInitialized.phpt b/ext/reflection/tests/ReflectionProperty_isInitialized.phpt index 29541e405b..ac87873c6a 100644 --- a/ext/reflection/tests/ReflectionProperty_isInitialized.phpt +++ b/ext/reflection/tests/ReflectionProperty_isInitialized.phpt @@ -114,7 +114,7 @@ bool(false) Object type: bool(false) Given object is not an instance of the class this property was declared in -No object provided for isInitialized() on instance property +ReflectionProperty::isInitialized(): Argument #1 ($object) must be provided for instance properties Class with __isset: bool(false) bool(false) |