Skip to content

[PHP 7.4] Spread array#1416

Merged
TomasVotruba merged 2 commits intomasterfrom
spread-array
May 16, 2019
Merged

[PHP 7.4] Spread array#1416
TomasVotruba merged 2 commits intomasterfrom
spread-array

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

Closes #1411

@TomasVotruba TomasVotruba force-pushed the spread-array branch 4 times, most recently from 8c6b57d to e2fba5c Compare May 15, 2019 22:37
@TomasVotruba TomasVotruba merged commit 6fa471f into master May 16, 2019
@TomasVotruba TomasVotruba deleted the spread-array branch May 16, 2019 09:05
@lyrixx
Copy link
Copy Markdown

lyrixx commented Jun 2, 2020

Hi Tomas

Thanks for this PR. I used rector on a projet of mine and I saw this diff.
So I ran some benchmark to compare both version : lyrixx/php-bench#5

The new version (spread array) is slower. And the new version is not necessary more readable.
So what do you think of making this rector optionnal in the php 7.4 set ?

@TomasVotruba
Copy link
Copy Markdown
Member Author

Hi,

how would people know about optional sets? It's like optional dependency.

Also, could you test with opcodes? I recall there was some difference about it in RFC.

@TomasVotruba
Copy link
Copy Markdown
Member Author

Thank you for performance testing 👍

TomasVotruba added a commit that referenced this pull request Dec 7, 2021
rectorphp/rector-src@4ca7e3f Disable workflows unsuited for forks (#1416)
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.

[PHP 7.4] Add array spread operator

2 participants