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
16 lines
375 B
PHP
16 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
|