-
-
Notifications
You must be signed in to change notification settings - Fork 934
Closed
Labels
Description
It would be great if PHPStan added support for Psalm's @no-named-arguments.
Example use case: https://phpstan.org/r/65ac2b61-6af2-41b2-87b2-a611439210c3
class Test
{
/** @var list<string> */
private array $items;
/**
* @no-named-arguments
*/
public function __construct(string ...$items): void
{
$this->items = $items;
}
/**
* @return list<string>
*/
public function getItems(): array {
return $this->items;
}
}rieschl, ndench and mhsdesign