https://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP#Spaces states
Put spaces in brackets when declaring an array, except where the array is empty. Do not put spaces in brackets when accessing array elements.
// Yes $a = [ 'foo', 'bar' ]; $c = $a[0]; $x = []; // No $a = ['foo', 'bar']; $c = $a[ 0 ]; $x = [ ];
We already have sniffs that check for $a and $x, but we don't have one for $c. Perhaps we should.
Ideally with a phpcbf fix, because there's probably a fair bit of code where people's IDEs did the "No" version for them.