Issue Task Closed

#101777Ensure short list syntax is used

Torben Hansen 08/28/23, 13:48 updated 01/30/24, 08:30

Description

The short list syntax has been introduced with PHP 7.1. Instead of using list($foo, $bar) it is possible to use [$foo, $bar] instead. All occurrences of list() have been migrated to the short list syntax with #90002, but a new usage has been introduced in at least one class.

We should extend our php-cs-fixer configuration to detect list() usage.

Reviews 2