PHP 7.4: RequiredToOptionalFunctionParameters: account for new optional array_merge() parameters by jrfnl · Pull Request #817 · PHPCompatibility/PHPCompatibility
Navigation Menu
{{ message }}
PHPCompatibility / PHPCompatibility Public
- Notifications You must be signed in to change notification settings
- Fork 204
Conversation
Copy link Copy Markdown
Member
jrfnl
commented
Jun 14, 2019
jrfnl
commented
array_merge() and array_merge_recursive() may now be called without any
arguments, in which case they will return an empty array. This is useful
in conjunction with the spread operator, e.g. array_merge(...$arrays).
Refs:
- https://github.com/php/php-src/blob/42cc58ff7b2fee1c17a00dc77a4873552ffb577f/UPGRADING#L276
- https://www.php.net/manual/en/function.array-merge.php
- https://www.php.net/manual/en/function.array-merge-recursive.php
- Allow calling array_merge / array_merge_recursive without arguments php/php-src#4175
- php/php-src@77cf3d7
Loosely related to #808
…al array_merge() parameters > array_merge() and array_merge_recursive() may now be called without any > arguments, in which case they will return an empty array. This is useful > in conjunction with the spread operator, e.g. array_merge(...$arrays). Refs: * https://github.com/php/php-src/blob/42cc58ff7b2fee1c17a00dc77a4873552ffb577f/UPGRADING#L276 * https://www.php.net/manual/en/function.array-merge.php * https://www.php.net/manual/en/function.array-merge-recursive.php * php/php-src#4175 * php/php-src@77cf3d7
jrfnl
added
Type: enhancement
PR: quick merge
PR: ready for review labels
Jun 14, 2019
jrfnl
added this to the
9.2.0 milestone
jrfnl
requested a review
from wimg
wimg approved these changes Jun 16, 2019
wimg approved these changes Jun 16, 2019
wimg
merged commit
60b98f6
into
master
wimg
deleted the
php-7.4/required-optional-args-array-merge
branch
jrfnl
removed
the
PR: ready for review
label
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment