laravel / pint

Laravel Pint is an opinionated PHP code style fixer for minimalists.

Home Page:https://laravel.com/docs/pint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[bug] php-cs-fixer 3.17 rule not working

sneycampos opened this issue · comments

Pint Version

1.10.1

PHP Version

8.1.0

Description

I'm trying to use "single_line_empty_body" fixer that was released in friendsofsymfony/php-cs-fixer 3.17.0 but not works.

pint.json

{
    "preset": "psr12",
    "rules": {
        "single_line_empty_body": true
    }
}

error
image

Steps To Reproduce

  • use latest pint release
  • add single_line_empty_body: true to pint.json rules key
  • run pint

@driesvints probably because of the missing compile and the version bump to 1.10.1

Sorry, I forgot to push the changes. Released now as v1.10.2