summaryrefslogtreecommitdiff
path: root/Zend/tests/function_arguments/argument_count_correct_strict.phpt
blob: bfce61f0c9017530c32399f99aeaaa8221d70597 (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 with strict types
--FILE--
<?php
declare(strict_types=1);
function foo() { }
foo();

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

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

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

echo "done";
--EXPECT--
done