1
0
mirror of https://github.com/php/php-src.git synced 2026-04-16 12:31:06 +02:00
Files
archived-php-src/ext/spl/tests/fixedarray_009.phpt
Máté Kocsis ac0853eb26 Make type error messages more consistent
Closes GH-5092
2020-02-17 14:22:17 +01:00

14 lines
327 B
PHP

--TEST--
SPL: FixedArray: Trying to instantiate passing string to constructor parameter
--FILE--
<?php
try {
$a = new SplFixedArray('FOO');
} catch (TypeError $iae) {
echo "Ok - ".$iae->getMessage().PHP_EOL;
}
?>
--EXPECT--
Ok - SplFixedArray::__construct() expects argument #1 ($size) to be of type int, string given