To Reproduce
Steps to reproduce the behavior: copy-paste this script to the IDE
<?php
declare(strict_types=1);
namespace ns1\ns2;
class Test14 {
public function fn1(int $par1, int $par2, int $par3) {}
}
$test17 = new Test14;
$test17->fn1(10, 20); // this statement must trigger error
// -------------------------------------------------------------------------
function fn1(int $par1, int $par2, int $par3) {}
fn1(10, 20); // this statement must trigger error
// -------------------------------------------------------------------------
$var1 = function (int $par1, int $par2, int $par3) {};
$var1(10, 20); // this statement must trigger error
// -------------------------------------------------------------------------
$var2 = fn(int $par1, int $par2, int $par3) => 10;
$var2(10, 20); // this statement must trigger error
Bug Description Missing error on lack of arguments.
Eclipse environment Version: 2023-06 (4.28.0) Build id: 20230608-1333 PDT: 8.0.0.202306050832
System
To Reproduce Steps to reproduce the behavior: copy-paste this script to the IDE