barryvdh / laravel-ide-helper

IDE Helper for Laravel
MIT License
14.25k stars 1.17k forks source link

Make Model PHPdocs created by --write option compatible with Laravel Pint #1617

Open mark-audience opened 1 day ago

mark-audience commented 1 day ago

Laravel Pint runs CS Fixer to apply a clean code style. Updating the Mixins keeps introducing code that does not agree with Pint. The block starts with 2 empty lines which Pint removes, The Pint adds an extra line between the blocks of @property-read and @method static blocks, followed by another empty line above the line * @mixin \Eloquent

Steps to reproduce:

  1. install Pint composer require laravel/pint --dev
  2. Write PHPdocs php artisan ide-helper:models --write
  3. Make Pint clean up code ./vendor/bin/pint app/Models

Ideally step 3 should result in 0 file changes.

nzmattman commented 2 hours ago

i second this.., please :)