mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-21 22:32:41 +01:00
Fix implicitly nullable parameter declarations for PHP 8.4
Summary: Implicitly nullable parameter declarations are deprecated in PHP 8.4: https://php.watch/versions/8.4/implicitly-marking-parameter-type-nullable-deprecated The proposed syntax was introduced in PHP 7.1. Refs T15935 Test Plan: Try to successfully run `./bin/storage upgrade` with PHP 8.4 Reviewers: O1 Blessed Committers, chris Reviewed By: O1 Blessed Committers, chris Subscribers: tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T15935 Differential Revision: https://we.phorge.it/D25813
This commit is contained in:
parent
b3d45c7104
commit
99e57a7021
1 changed files with 1 additions and 1 deletions
|
@ -960,7 +960,7 @@ function phutil_split_lines($corpus, $retain_endings = true) {
|
||||||
* @param list $list (optional) List of scalars.
|
* @param list $list (optional) List of scalars.
|
||||||
* @return dict Dictionary with inputs mapped to themselves.
|
* @return dict Dictionary with inputs mapped to themselves.
|
||||||
*/
|
*/
|
||||||
function array_fuse(array $list = null) {
|
function array_fuse(?array $list = null) {
|
||||||
if ($list) {
|
if ($list) {
|
||||||
return array_combine($list, $list);
|
return array_combine($list, $list);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue