← Back
Editing: fixedarray_009.phpt
--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
Save File
Cancel