mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
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".
10 lines
255 B
PHP
10 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
|