Yes its fine to use long array syntax.
Are the error messages suggesting that the syntax is wrong?
--
Brian
On Monday, February 13, 2023, wrote:
> Hello,
>
> I have some array declarations in my LocalSettings.php from many years ago
> that I am worried may not be compatible with PHP 8+. When
Hi Roger, that's still the syntax. What are the errors you're getting?
On Tue, Feb 14, 2023 at 12:15 AM wrote:
> Hello,
>
> I have some array declarations in my LocalSettings.php from many years ago
> that I am worried may not be compatible with PHP 8+. When I try to run
>
Hello,
I have some array declarations in my LocalSettings.php from many years ago
that I am worried may not be compatible with PHP 8+. When I try to run
/maintenance/update.php in PHP 8.1 I get errors. It runs fine in PHP 7.4.3,
fortunately. However, is it okay to set arrays like this in PHP 8+?: