mirror of
https://github.com/php/php-src.git
synced 2024-09-23 10:57:26 +00:00
ce1d69a1f6
PHP requires integer typehints to be written "int" and does not allow "integer" as an alias. This changes type error messages to match the actual type name and avoids confusing messages like "must be of the type integer, integer given".
11 lines
255 B
PHP
11 lines
255 B
PHP
--TEST--
|
|
pass an integer into fromArray()
|
|
--CREDITS--
|
|
PHPNW Testfest 2009 - Lorna Mitchell
|
|
--FILE--
|
|
<?php
|
|
echo SplFixedArray::fromArray(17954);
|
|
?>
|
|
--EXPECTF--
|
|
Warning: SplFixedArray::fromArray() expects parameter 1 to be array, int given in %s on line %d
|