Skip to content

Conversation

keradus
Copy link
Member

@keradus keradus commented Jul 12, 2025

No description provided.

@gharlan
Copy link
Member

gharlan commented Jul 13, 2025

I made a quick comparison by just running the fixer on this repo (disabled cache):

sequentialparallel
Run 1Run 2Run 1Run 2
master67.145 sec66.565 sec13.262 sec12.770 sec
this pr65.709 sec65.018 sec12.552 sec12.281 sec

So overall it seems to be a bit faster.
I think it is a good change. 👍 The constants are used in this repo in so many places, and it enables other improvements (#8836). Also we do not have to think about the differences of arrays containing these constants and other arrays anymore (see also #8836).

keradus added a commit to keradus/PHP-CS-Fixer that referenced this pull request Jul 13, 2025
@keradus keradus changed the title apply Native constant invocation for build-in consts chore: apply native_constant_invocation for build-in consts Jul 13, 2025
@keradus keradus marked this pull request as ready for review July 13, 2025 21:36
@keradus keradus merged commit adf9503 into PHP-CS-Fixer:master Jul 13, 2025
18 of 27 checks passed
@keradus keradus deleted the native_constant_invocation__ branch July 13, 2025 21:37
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.

2 participants