pint
pint copied to clipboard
PHP 8.4 class instantiation without parentheses syntax error
Pint Version
1.19.0
PHP Version
8.4.1
Description
Running pint on class that uses PHP 8.4 syntax for class instantiation without parentheses, we get an error:
Parse error: syntax error, unexpected token "->", expecting ")"
Steps To Reproduce
DB::table(new Tenant()->getTable()) // this is the line that produces the error
->select('id')
->get('id');
Steps To Reproduce
new User()->toArray();
I have this issue too
Pending https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/milestone/173
Any indication when will this be implemented please?