Skip to content

Commit 1b092a3

Browse files
authored
Fix array_flip() on PHP 8.1 (#673)
1 parent bf4c4c9 commit 1b092a3

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

generated/8.1/functionsList.php

Lines changed: 0 additions & 1 deletion
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 & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generator/config/hiddenFunctions.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
return [
1010
'array_all', // false is not an error
1111
'array_combine', // this function throws an error instead of returning false since PHP 8.0
12+
'array_flip', // always return an array since PHP 8.0, see https://github.com/php/doc-en/issues/1178
1213
'array_walk_recursive', // actually returns always true, see https://github.com/php/doc-en/commit/cec5275f23d2db648df30a5702b378044431be97
1314
'date', // this function throws an error instead of returning false PHP 8.0, but the doc has only been updated since PHP 8.4
1415
'getallheaders', // always return an array since PHP 7, see https://github.com/php/doc-en/commit/68e52ef14de33f6752a8fdda1ae83c861c5babdb

0 commit comments

Comments
 (0)