Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mark-audience opened this issue Nov 26, 2024 · 1 comment

Comments

@mark-audience
Copy link

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
Copy link

i second this.., please :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants