mirror of
https://github.com/php/php-src.git
synced 2026-03-24 16:22:37 +01:00
From now on, we always display the given object's type instead of just reporting "object". Additionally, make the format of return type errors match the format of argument errors. Closes GH-5625
13 lines
327 B
PHP
13 lines
327 B
PHP
--TEST--
|
|
SPL: RecursiveTreeIterator(non-traversable)
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
new RecursiveTreeIterator(new ArrayIterator(array()));
|
|
} catch (TypeError $e) {
|
|
echo $e->getMessage(), "\n";
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
RecursiveCachingIterator::__construct(): Argument #1 ($iterator) must be of type RecursiveIterator, ArrayIterator given
|