Explore tweets tagged as #phpstan
It should be standard to add these composer scripts when using Pint, @rectorphp, @phpstan, and @pestphp. 🤞
2
10
61
Ever used a route parameter in a form request in @Laravel? 👀. I recently learned that you can actually dependency inject the route parameter directly into the `rules` method instead. This will also strictly type it and make PHPStan happy 🐘
0
12
55
I like using PHPStan in my projects, but sometimes in order to fully capture the types that Laravel allows, the type declarations can get a bit long and complicated to read. Here's a nice way to keep the types readable. Loved this tip from @freekmurze
2
5
34
Released experimental npm global tool for superfast analysis of PHP code: phpy. > npm i -g phpy. It uses our language server compiled from C#/NET9 to Native binaries 🚀. It supports everything the VS @Code extension does - PHPStan annotations, Psalm, generics, Laravel Idea .
1
3
7
@MrPunyapal PHPStan is essential for developers who skip writing test cases but are passionate about crafting high-quality code.
1
0
3