Plugin-php: Option to use long array() style on PHP 7

Created on 2 Aug 2020  路  2Comments  路  Source: prettier/plugin-php

Is there a specific option to force the old behavior of using 'array()' instead of shorthand notation without using the generic "phpVersion": "5.3" ?

It looks ugly and hacky to use such a generic option just to switch one thing.

Most helpful comment

I鈥檓 not a maintainer here or anything, but there is no such option. Such an option would go against the prettier options philosophy.

All 2 comments

I鈥檓 not a maintainer here or anything, but there is no such option. Such an option would go against the prettier options philosophy.

I totally agree with @karptonite - keeping the amount of configuration as small as possible and being opinionated is what prettier is all about.

Was this page helpful?
0 / 5 - 0 ratings