Plugin-php: strange output with merge array

Created on 9 Jul 2018  路  2Comments  路  Source: prettier/plugin-php

Input:

 $response->headers->replace($headers + [
    'Content-Type' => $this->mimeType($path),
    'Content-Length' => $this->size($path),
    'Content-Disposition' => $disposition,
]);

Output:

$response->headers->replace(
    $headers + [
        'Content-Type' => $this->mimeType($path),
        'Content-Length' => $this->size($path),
        'Content-Disposition' => $disposition
    ]
);

Expected: https://prettier.io/playground/#N4Igxg9gdgLgprEAuEASATnAzgB2luAOgAs4BDAEznS0MxwBsyw4AKAHSgAIfe+fUpStSxcA1F2Cd+M-gEcA7tRgBPFUi4BGADTTZ+xcrUade-TMPpV6rbu7meAXzP8AlAG4Q2kBBwwAlvjIoGTo6BAKAAqhCFjIIGQAbhD+FF4gAEbozADWcDAAyjjM-lAA5sgw6ACucN6lBFaR2WUAtmTIAGZkDATeAFZYAB4AQtlgeYVkrXAAMqVwXT19IMU01PEZZBkqDNDpOOilMADqqTDEyAAcAAzehxAEJ9k48YfY1ImL3phy1f6YZpkNodJDdXp1EAEVr+So1SFYUplBhwACK1Qg8CWEO8MG2ZwoF2QACZcdl-AwkQBhCCtdrxKDQb4gaoEAAq2ziYOWcEcjiAA

But need discussion

Most helpful comment

To me, the way it's formatted right now also looks pretty good.

All 2 comments

To me, the way it's formatted right now also looks pretty good.

Closed, because expected

Was this page helpful?
0 / 5 - 0 ratings