Description:
------------
If there is a syntax error because there are two consecutive commas in an array, a fatal error is reported:
PHP Fatal error: Cannot use empty array elements in arrays in file.php on line 3
The problem is that the line reported is the start of the array definition, not the line at which the error actually is.
This makes it very hard to debug array definitions of 100 lines length.
See https://3v4l.org/Ek6pJ and https://3v4l.org/WJUbZ
Test script:
---------------
<?php
$a = [
1,
,
3
];
Expected result:
----------------
Line 4 should be reported.
Actual result:
--------------
Line 3 is reported.