mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02: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
15 lines
375 B
PHP
15 lines
375 B
PHP
--TEST--
|
|
Create an SplFixedArray using an SplFixedArray object.
|
|
--CREDITS--
|
|
Philip Norton philipnorton42@gmail.com
|
|
--FILE--
|
|
<?php
|
|
try {
|
|
$array = new SplFixedArray(new SplFixedArray(3));
|
|
} catch (TypeError $iae) {
|
|
echo "Ok - ".$iae->getMessage().PHP_EOL;
|
|
}
|
|
|
|
?>
|
|
--EXPECT--
|
|
Ok - SplFixedArray::__construct(): Argument #1 ($size) must be of type int, SplFixedArray given
|