You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: TooManyArguments - src/Test.php:9:18 - Too many arguments for Google_Service_Sheets_ValueRange::__construct - expecting 0 but saw 1 (see https://psalm.dev/026)
$range = new \Google_Service_Sheets_ValueRange([]);
but constructor is variadic:
class Google_Model implements ArrayAccess
{
final public function __construct()
{
if (func_num_args() == 1 && is_array(func_get_arg(0))) {
// Initialize the model with the array's contents.
$array = func_get_arg(0);
$this->mapTypes($array);
}
$this->gapiInit();
}
The text was updated successfully, but these errors were encountered:
I've found #2580, but bug seems to be still there. Here is a repo with example to reproduce problem: https://github.com/mrpavlikov/psalm-variadic
Here's what I get:
but constructor is variadic:
The text was updated successfully, but these errors were encountered: