1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00
This commit is contained in:
orklah 2022-01-08 21:50:21 +01:00
parent 80f617decd
commit 9877517284

View File

@ -699,6 +699,24 @@ class ArgTest extends TestCase
', ',
'error_message' => 'ArgumentTypeCoercion', 'error_message' => 'ArgumentTypeCoercion',
], ],
'MissingMandatoryParamWithNamedParams' => [
'<?php
class User
{
public function __construct(
protected string $name,
protected string $problematicOne,
protected string $id = "",
){}
}
new User(
name: "John",
id: "asd",
);
',
'error_message' => 'TooFewArguments',
],
]; ];
} }
} }