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 class properties in interfaces with PHP 8.4 #314

Closed
martio opened this issue Dec 7, 2024 · 1 comment
Closed

Comments

@martio
Copy link

martio commented Dec 7, 2024

Pint Version

1.18.3

PHP Version

8.4.1

Description

I encountered an issue with Laravel Pint when using PHP 8.4. Specifically, Laravel Pint is unable to handle class properties defined in interfaces, which is a new feature in PHP 8.4.

Error

Steps To Reproduce

Steps to Reproduce:

  1. Use PHP 8.4 and create an interface with class properties:
interface Identifiable
{
    public Uid $aggregateIdentifier { get; }
}
  1. Implement the interface in a class and define a property getter:
class User implements Identifiable
{
    public Uid $aggregateIdentifier {
        get => $this->userId;
    }
}
  1. Run Laravel Pint.
@crynobone
Copy link
Member

Duplicate of #304

Let's just monitor the status using the posted PR.

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

2 participants