blob: 33748649daee0e147f4c22bb28a556f691a03f1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
Call internal function with incorrect number of arguments with strict types
--FILE--
<?php
declare(strict_types=1);
try {
substr("foo");
} catch (\Error $e) {
echo get_class($e) . PHP_EOL;
echo $e->getMessage() . PHP_EOL;
}
array_diff([]);
--EXPECTF--
ArgumentCountError
substr() expects at least 2 parameters, 1 given
Warning: array_diff(): at least 2 parameters are required, 1 given in %s
|