mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Fix GH-8329 Print true/false instead of bool in error and debug messages (#8385)
This commit is contained in:
parent
f8f7fd2db1
commit
7936c8085e
145 changed files with 563 additions and 544 deletions
|
@ -880,7 +880,7 @@ ZEND_FUNCTION(method_exists)
|
|||
RETURN_FALSE;
|
||||
}
|
||||
} else {
|
||||
zend_argument_type_error(1, "must be of type object|string, %s given", zend_zval_type_name(klass));
|
||||
zend_argument_type_error(1, "must be of type object|string, %s given", zend_zval_value_name(klass));
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
|
@ -942,7 +942,7 @@ ZEND_FUNCTION(property_exists)
|
|||
} else if (Z_TYPE_P(object) == IS_OBJECT) {
|
||||
ce = Z_OBJCE_P(object);
|
||||
} else {
|
||||
zend_argument_type_error(1, "must be of type object|string, %s given", zend_zval_type_name(object));
|
||||
zend_argument_type_error(1, "must be of type object|string, %s given", zend_zval_value_name(object));
|
||||
RETURN_THROWS();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue