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

Laravel Pint does not support interfaces with class properties in PHP 8.4 #317

Open
martio opened this issue Dec 12, 2024 · 3 comments
Open

Comments

@martio
Copy link

martio commented Dec 12, 2024

Pint Version

1.18.3

PHP Version

8.4.1

Description

Laravel Pint does not support interfaces with class properties in PHP 8.4:

interface UserEvent
{
    /**
     * The user ID.
     */
    public Uid $userId { get; }
}
Screenshot

Steps To Reproduce

interface UserEvent
{
    /**
     * The user ID.
     */
    public Uid $userId { get; }
}
@Jubeki
Copy link
Contributor

Jubeki commented Dec 13, 2024

The underlying library PHP-CS-Fixer is currently working on PHP 8.4 compatibility (this does not include PHP 8.4 syntax specific fixers).
See the following milestone for more information:

Furthermore is Laravel Pint working on PHP 8.4 compatibility:

@crynobone maybe it would be best to release the already merged PR from me:

@martio
Copy link
Author

martio commented Dec 13, 2024

@Jubeki Thank you for the information, and I’m keeping my fingers crossed for your success! 😊

@keradus
Copy link

keradus commented Jan 9, 2025

there is also one more possibility for situations like that.
get into actual Fixer repository and send the patch to bring the support/feature/bugfix you need ;)

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

No branches or pull requests

3 participants