-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change JsonResponse::class to JsonApiResponse::class
Our custom rector rule `ApiHandlerJsonResponseRector` fixes most of the `Crm\ApiModule\Api\JsonResponse` instances (eg. `new JsonResponse()`) to `Tomaj\NetteApi\Response\JsonApiResponse` (together with moving http code from `->setCode()` directly into JsonApiResponse initialization. But it doesn't refactor all instances. Eg. `JsonResponse::class` (used in tests) and PHPdoc annotations like `/** @var JsonResponse */` were left unchanged. Using `RenameClassRector` fixes that. remp/crm#2330 & remp/crm#2342
- Loading branch information
Showing
1 changed file
with
38 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters