Context
Given following code:
<?php
final readonly class MyDTO {
public function __construct(public string $foo) {}
}
return (new MapperBuilder())
->build()
->map(MyDTO::class, $_POST);
In this example, MyDTO::__construct() is marked as unused by vimeo/psalm and similar static analysis tooling.
It would be nice if the Valinor Psalm plugin marked such code location as used.
/cc @CristinCebotari
Context
Given following code:
In this example,
MyDTO::__construct()is marked as unused byvimeo/psalmand similar static analysis tooling.It would be nice if the Valinor Psalm plugin marked such code location as used.
/cc @CristinCebotari