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
|
@ -187,13 +187,13 @@ PHP_METHOD(PhpToken, is)
|
|||
RETURN_TRUE;
|
||||
}
|
||||
} else {
|
||||
zend_argument_type_error(1, "must only have elements of type string|int, %s given", zend_zval_type_name(entry));
|
||||
zend_argument_type_error(1, "must only have elements of type string|int, %s given", zend_zval_value_name(entry));
|
||||
RETURN_THROWS();
|
||||
}
|
||||
} ZEND_HASH_FOREACH_END();
|
||||
RETURN_FALSE;
|
||||
} else {
|
||||
zend_argument_type_error(1, "must be of type string|int|array, %s given", zend_zval_type_name(kind));
|
||||
zend_argument_type_error(1, "must be of type string|int|array, %s given", zend_zval_value_name(kind));
|
||||
RETURN_THROWS();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue