summaryrefslogtreecommitdiff
path: root/Zend/tests/function_arguments/argument_count_correct.phpt
blob: 9c73b93520c325d53554f18afa9c942f8c87b196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--TEST--
Call function with correct number of arguments
--FILE--
<?php
function foo() { }
foo();

function bar($foo, $bar) { }
bar(1, 2);

function bat(int $foo, string $bar) { }
bat(123, "foo");
bat("123", "foo");

$fp = fopen(__FILE__, "r");
fclose($fp);

echo "done";
--EXPECT--
done