Setting up to handle / , Laravel Pint, Code Sniffer and CS_Fixer (not sure if this is needed with Laravel Pint). What is the best way to set this up so I don't have to set this up for every project? Tried to point to a globally installed version of each but wasn't able to easily do this.

Suggestions or a pointer to a tutorial would be fabuluous!

#phpstorm #Phpstan #larastan

Last updated 1 year ago

New plugin for to give you type coverage right in Pest. Simply `composer require pestphp/pest-plugin-type-coverage —dev` and then run Pest with `pest —type-coverage -min=100` Perhaps you won’t need or anymore.

Four other great new features in Pest in Like Downing’s video on Laracasts here laracasts.com/series/lukes-lar

#php #pest #Phpstan #larastan

Last updated 1 year ago

Axel Libori Roch · @alibori
2 followers · 5 posts · Server phpc.social

Is level 5 good enough for our applications? Which level you recommend as minimum?

#larastan #php #laravel #Phpstan

Last updated 2 years ago

Last two days I struggled getting to accept

$response = collect($rows->response);

The error was 'Unable to resolve the template type TKey/TValue in call to function collect‘.

The solution (for me) is to add the type onto a variable first, and then use that variable in the collect() method. Hope this helps others, or if you feel this can be improved upon, please do let me know (suggestion came from this issue github.com/nunomaduro/larastan)

#laravel #larastan

Last updated 2 years ago

Using (level 6), down to 11 errors now. Struggling to get my arrays typed correctly, and handling property assignments now. Otherwise, enjoying the massive cleanup of my code.

#larastan

Last updated 2 years ago