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 (ArgumentCountError $e) { 9 echo get_class($e) . PHP_EOL; 10 echo $e->getMessage() . PHP_EOL; 11} 12 13try { 14 array_diff(); 15} catch (ArgumentCountError $e) { 16 echo get_class($e) . PHP_EOL; 17 echo $e->getMessage(), "\n"; 18} 19?> 20--EXPECT-- 21ArgumentCountError 22substr() expects at least 2 arguments, 1 given 23ArgumentCountError 24array_diff() expects at least 1 argument, 0 given 25