Fork me on GitHub
a Sensio Labs Product

Jump & Run (v3.28.0) edition

Rule no_trailing_comma_in_singleline_array

PHP single-line arrays should not have trailing comma.


This rule is deprecated and will be removed on next major version

You should use no_trailing_comma_in_singleline instead.


Example #1

--- Original
+++ New
-$a = array('sample',  );
+$a = array('sample');
The logo is © 2010-2022 Sensio Labs