[lang-ref] ( init_array_ignores_last_separator ) ( php )
<?php
public function testInitArrayIgnoresLastSeparator(): void
{
// Yes
$items = [
1,
2,
3,
];
$this->assertIsArray($items);
$this->assertSame(3, count($items));
}
<?php
public function testInitArrayIgnoresLastSeparator(): void
{
// Yes
$items = [
1,
2,
3,
];
$this->assertIsArray($items);
$this->assertSame(3, count($items));
}