driftingly/rector-laravel

JsonCallToExplicitJsonCallRector with getJson()

Closed this issue · 0 comments

We can't just replace json('GET' to getJson(. Only if no $data passed.

image

There are different signatures and getJson does not support any params ($data)

public function json($method, $uri, array $data = [], array $headers = [], $options = 0);

public function getJson($uri, array $headers = [], $options = 0);