Having this code:
<?php declare(strict_types = 1);
function FA(string $s) : void
{
echo($s);
}
FA('Test', '2');
I'm calling the function FA
with two arguments but it only expects one.
PHP Tools does not detect this as an error, PHPStan does:
Function FA invoked with 2 parameters, 1 required.
Suggestion
Please also detect wrong number or arguments and notify me about it.