DEV Community

Discussion on: Setup PHP-CS-Fixer for Laravel Project

Collapse
 
otsch profile image
otsch

Hello 👋
thx, I just tried this config and got the message

Option "tokens: use_trait" used in `no_extra_blank_lines` rule is deprecated, use the rule `class_attributes_separation` with `elements: trait_import` instead.
Enter fullscreen mode Exit fullscreen mode

So I removed 'use_trait' from ['no_extra_blank_lines']['tokens'] and added 'trait_import' => 'none', to ['class_attributes_separation']['elements'] instead. Maybe you want to update the post.

Collapse
 
ibrarturi profile image
Ibrar Hussain

@otsch Thanks

I have updated the config file.