laravel/pint

Pint with --repair option does not exit but shows success instead

Tamas-hi opened this issue · 2 comments

Pint Version

1.17.0

PHP Version

8.2.2

Description

According to the docs :

If you would like Pint to fix any files with code style errors but also exit with a non-zero exit code if any errors were fixed, you may use the --repair option:

./vendor/bin/pint --repair

However after creating a project with Laravel Breeze, this is the behavior I experience:

  1. --test correctly signals a formatting error and exits

./vendor/bin/pint --test

FAIL .............................................................................................................................................. 46 files, 1 style issue
⨯ routes/auth.php

  1. --repair correctly signals the formatting error, fixes it, but does not exist and returns with success:

./vendor/bin/pint --repair

FIXED ....................................................................................................................................... 46 files, 1 style issue fixed
✓ routes/auth.php

I think I should see a big red X in the last row instead of the green tick.

Steps To Reproduce

  1. Initialize a brand new laravel project with Laravel Breeze
  2. Run Laravel Pint with the option --repair.

@Tamas-hi can you try to understand why please? thanks!

Hey there,

We're closing this issue because it's inactive, already solved, old, or not relevant anymore. Feel free to open up a new issue if you're still experiencing this problem.