Skip to content

Braces bug since 1.19.0 #352

Open
Open
@Seb33300

Description

@Seb33300

Pint Version

1.19.0+

PHP Version

8.4

Description

Starting version 1.19.0 of Laravel Pint, I am facing a very strange bug where Laravel Pint detects false positive issue with braces.

I cannot reproduce the issue on version 1.18.3.

Steps To Reproduce

This issue occurs only with PHP 8.4. Not on PHP 8.3

The minimum reproducer I found:

<?php

if (false) {
    set();
}

Result:

Image

For some reason, the issue seems to be caused by set();.
If I replace set(); by se(); of sett();, pint pass successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions