Is it possible to get a warning in the following code?
error_reporting(E_ALL);
$s = array(
'a' => '1',
'a' => '1'
);
var_export( $s );
Your only hope (apart from count-ing yourself) is that your editor is smart enough to highlight the typo. This screenshot is from PHPStorm:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With