Skip to content

Unwanted space in type declaration #271

@Avokadomos

Description

@Avokadomos

When using the array keyword in type declarations, it is always followed by an unwanted space before the next type. This is how it formats when you have multiple type declarations. Notice the space after array.

public function execute(): array |bool

If you put array last, it looks better.

public function execute(): bool|array

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions