driftingly / rector-laravel

Rector upgrades rules for Laravel
http://getrector.org
MIT License
469 stars 48 forks source link

JsonCallToExplicitJsonCallRector with getJson() #210

Closed Tahiaji closed 2 months ago

Tahiaji commented 2 months ago

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);