Skip to content

Does this work? #1631

@jscheid

Description

@jscheid

I must be missing something... why does this not work?
https://github.com/jscheid/prettier-php-test

➜  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.

Shouldn't this be printing the sample output in https://github.com/prettier/plugin-php#output ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions