mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
ae281c372a
# Also nuked some CRLF's
16 lines
292 B
PHP
Executable File
16 lines
292 B
PHP
Executable File
--TEST--
|
|
Array type hint
|
|
--FILE--
|
|
<?php
|
|
function foo(array $a) {
|
|
echo count($a)."\n";
|
|
}
|
|
|
|
foo(array(1,2,3));
|
|
foo(123);
|
|
?>
|
|
--EXPECTF--
|
|
3
|
|
|
|
Fatal error: Argument 1 passed to foo() must be an array, called in %sarray_type_hint_001.php on line 7 and defined in %sarray_type_hint_001.php on line 2
|