1.2.419. Empty Slots In Arrays

PHP allows the last element of an array to be empty. It doesn’t allow any other element to be empty: it should at least be an explicit NULL value.

<?php
    $a = array( 1, 2, 3, );
    $b =      [ 4, 5, ];
?>

1.2.419.1. Connex PHP features

1.2.419.1.1. Specs

Short name

Arrays/EmptySlots

Rulesets

All, Changed Behavior, Coding conventions

Exakat since

0.8.4

PHP Version

All

Severity

Minor

Time To Fix

Instant (5 mins)

Precision

High

Available in

Entreprise Edition, Exakat Cloud