Open momala454 opened 3 weeks ago
I tried to understand how to add it myself, but it's too hard :/
What I have tried is to put on the phpdoc of the "validate" method of the class, a line @phpstan-assert that explain the type of the value returned and tried to read that value
@phpstan-assert
Actually, here is a solution that use @phpstan-assert properly
https://github.com/jbboehr/phpstan-laravel-validation/pull/11
I tried to understand how to add it myself, but it's too hard :/
What I have tried is to put on the phpdoc of the "validate" method of the class, a line
@phpstan-assert
that explain the type of the value returned and tried to read that value