blade-formatter icon indicating copy to clipboard operation
blade-formatter copied to clipboard

[Feature]: Support PHP 8.4

Open calebdw opened this issue 9 months ago • 3 comments

Description

Hello!

I have this in my blade:

@props([
    'fileExtensions' => new AllowedExtensionsFilePolicy()->get(),
])

but it's failing with

 SyntaxError: Parse Error : syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ']'

Thanks!

Suggested Solution

I'd like PHP 8.4 to be supported

Alternatives

No response

Additional Context

No response

calebdw avatar Feb 24 '25 23:02 calebdw

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days

github-actions[bot] avatar Apr 26 '25 02:04 github-actions[bot]

It would be great to have support for this!

calebdw avatar Apr 26 '25 02:04 calebdw

Merging #999 should help with this.

Bocom avatar May 16 '25 08:05 Bocom

This will be resolved after 8.4 support in plugin-php merged. https://github.com/prettier/plugin-php/pull/2422

shufo avatar Jul 11 '25 12:07 shufo

Released 1.42.4 with 8.4 support. From 1.43.0, it will format code as php 8.4 as default.

shufo avatar Jul 16 '25 10:07 shufo