➜ prettier-php-test git:(main) yarn test
yarn run v1.22.10
$ prettier sample.php
array_map(function($arg1,$arg2) use ( $var1, $var2 ) {
return $arg1+$arg2/($var+$var2);
}, array("complex"=>"code","with"=>
function() {return "inconsistent";}
,"formatting"=>"is", "hard" => "to", "maintain"=>true));
✨ Done in 0.45s.
I must be missing something... why does this not work?
https://github.com/jscheid/prettier-php-test
Shouldn't this be printing the sample output in https://github.com/prettier/plugin-php#output ?