You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
v2.0.4 (tested with latest dev-main (acf35ad) as well)
Hi, (probably since #4036) Rector tries to change ResponseInterface to a FQCN in my controller, even if the interface is already imported as use statement:
1) Classes/Controller/JobController.php:53
---------- begin diff ----------
@@ @@
protected readonly SchemaFactory $schemaFactory,
) {}
- public function listAction(): ResponseInterface
+ public function listAction(): \Psr\Http\Message\ResponseInterface
{
$this->cacheManager->addTag();
@@ @@
return $this->htmlResponse();
}
- public function showAction(Job $job): ResponseInterface
+ public function showAction(Job $job): \Psr\Http\Message\ResponseInterface
{
$this->cacheManager->addTag($job);
----------- end diff -----------
Applied rules:
* ExtbaseControllerActionsMustReturnResponseInterfaceRector (https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.0/Deprecation-92784-ExtbaseControllerActionsMustReturnResponseInterface.html)
* ReplaceInjectAnnotationWithMethodRector (https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/11.
(see https://github.com/CPS-IT/personio-jobs/actions/runs/7903793944/job/21572533386)
Bug Report
Hi, (probably since #4036) Rector tries to change
ResponseInterface
to a FQCN in my controller, even if the interface is already imported as use statement:Minimal PHP Code Causing Issue
https://getrector.com/demo/950fb62c-9b09-482d-9eb8-fa8169a3ff8a
See workflow run: https://github.com/CPS-IT/personio-jobs/actions/runs/8188793551/job/22392070989?pr=146
Expected Behaviour
The return type shouldn't be changed.
The text was updated successfully, but these errors were encountered: