Are there any plans to support PHP 8 attribute code formatting? right now it does some weird things.
I'm specifically talking about attributes that are not "simple" like the ones found in the documentation https://www.php.net/manual/en/language.attributes.overview.php
but more complex ones like swagger-php https://zircote.github.io/swagger-php/guide/attributes.html
right now the formatter does some weird things with those, for example if I have a schema attribute for a class like this:
#[OAT\Schema(
properties:
[
"id" => new OAT\Property
(
readOnly: true,
property: "id",
type: "integer",
example: 123,
),
]
)]
the formatter loses all the identation, and on subsequent formats splits readOnly: true first to
readOnly
: true
and then just starts adding new lines between readOnly and : true
is there something I can do now? perhaps make the formatter ignore attributes?
using version v1.31.12740