psalm / psalm-plugin-laravel

A Psalm plugin for Laravel
MIT License
306 stars 71 forks source link

Use stubs instead handlers #284

Closed alies-dev closed 1 year ago

alies-dev commented 1 year ago

Hey @mr-feek

I was working on improving stubs for helpers, adding missing and then realised we already have custom handlers for some helper functions. I found that you are an author of these handlers. I really respect your work and contribution to the project, this is why it's totally up to you what to use: handlers or stubs. Of course, handlers are more powerful and customisable, but we don't always need it. Some benefits of stubs:

Additionally:

mr-feek commented 1 year ago

If something can be fully expressed in stubs, let's do it! Less code to maintain, the better 👍