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