Skip to content

Commit eed82f1

Browse files
authored
Fix array_replace() / array_replace_recursive() on PHP 8.1 (#674)
1 parent 1b092a3 commit eed82f1

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

generated/8.1/functionsList.php

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/8.1/rector-migrate.php

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generator/config/hiddenFunctions.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
'array_all', // false is not an error
1111
'array_combine', // this function throws an error instead of returning false since PHP 8.0
1212
'array_flip', // always return an array since PHP 8.0, see https://github.com/php/doc-en/issues/1178
13+
'array_replace', // this function throws an error instead of returning false since PHP 8.0, see https://github.com/php/doc-en/pull/1649
14+
'array_replace_recursive', // this function throws an error instead of returning false since PHP 8.0, see https://github.com/php/doc-en/pull/1649
1315
'array_walk_recursive', // actually returns always true, see https://github.com/php/doc-en/commit/cec5275f23d2db648df30a5702b378044431be97
1416
'date', // this function throws an error instead of returning false PHP 8.0, but the doc has only been updated since PHP 8.4
1517
'getallheaders', // always return an array since PHP 7, see https://github.com/php/doc-en/commit/68e52ef14de33f6752a8fdda1ae83c861c5babdb

0 commit comments

Comments
 (0)