blob: 9cc684ce03648e34097d8b8c5b1de78a6c818822 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
--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(): Argument #1 ($size) must be of type int, string given
|