Skip to content

Change array syntax to more commonly used#269

Closed
kkmuffme wants to merge 1 commit into
phpDocumentor:2.xfrom
kkmuffme:complex-array-syntax-formatting
Closed

Change array syntax to more commonly used#269
kkmuffme wants to merge 1 commit into
phpDocumentor:2.xfrom
kkmuffme:complex-array-syntax-formatting

Conversation

@kkmuffme

@kkmuffme kkmuffme commented Dec 7, 2025

Copy link
Copy Markdown
  • to visually distinguish from conditional types like ($foo ? false : string[]) and callable syntax
  • to improve readability for array shapes and arrays of literals
  • to visually more closely align it with PHP native type hint

* to visually distinguish from conditional types like ($foo ? false : string[]) and callable syntax
* to improve readability for array shapes and arrays of literals
* to visually more closely align it with PHP native type hint

@mspirkov mspirkov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests need to be completed/corrected.

@kkmuffme

kkmuffme commented Dec 7, 2025

Copy link
Copy Markdown
Author

Can you please approve the github workflow, so they run in github's CI so I know what/which if any fail, bc if I run all projects' tests locally I can't work on something else in the meantime

@mspirkov

mspirkov commented Dec 7, 2025

Copy link
Copy Markdown
Contributor

No, I don't have access. We'll have to wait for @jaapio for that.

@jaapio

jaapio commented Dec 8, 2025

Copy link
Copy Markdown
Member

Also this PR needs tests. Test coverage has never been 100% but we need to make sure we are not breaking things in the future.

@mspirkov

Copy link
Copy Markdown
Contributor

I suggest doing it like this: #274

@mspirkov

Copy link
Copy Markdown
Contributor

I think this request can be closed because I did it in another request.
@kkmuffme Thanks for the idea.

@kkmuffme kkmuffme closed this Dec 23, 2025
@kkmuffme kkmuffme deleted the complex-array-syntax-formatting branch December 23, 2025 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants