laravel / pint

Laravel Pint is an opinionated PHP code style fixer for minimalists.
https://laravel.com/docs/pint
MIT License
2.75k stars 138 forks source link

Pint fails when using new PHP 8.3 features #248

Closed OMKE closed 6 months ago

OMKE commented 6 months ago

Pint Version

1.13

PHP Version

8.3

Description

Pint fails when using new PHP 8.3 features like:

  1. readonly class
  2. typed constants

Steps To Reproduce

  1. Add readonly before class readonly class FacebookAdAccountService implements IntegrationAdAccountService
  2. Add type to constant: const string VIEW_STORES = 'view stores';
driesvints commented 6 months ago

readonly works for me, typed constants not. We'll get the dependencies updated for tomorrow's release but in this is mainly a PHP CS Fixer issue.