source: src/router/php7/Zend/tests/function_arguments/argument_count_correct_strict.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 6 weeks ago

update php

File size: 310 bytes
Line 
1--TEST--
2Call function with correct number of arguments with strict types
3--FILE--
4<?php
5declare(strict_types=1);
6function foo() { }
7foo();
8
9function bar($foo, $bar) { }
10bar(1, 2);
11
12function bat(int $foo, string $bar) { }
13bat(123, "foo");
14
15$fp = fopen(__FILE__, "r");
16fclose($fp);
17
18echo "done";
19--EXPECT--
20done
Note: See TracBrowser for help on using the repository browser.