8000 fix class ref to avoid prefixing · JohJohan/rector-symfony@db1760f · GitHub
[go: up one dir, main page]

Skip to content

Commit db1760f

Browse files
committed
fix class ref to avoid prefixing
1 parent fcf920e commit db1760f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/CodeQuality/Rector/ClassMethod/TemplateAnnotationToThisRenderRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ private function refactorReturnWithValue(
304304
$lastReturnExpr = $return->expr;
305305

306306
$returnStaticType = $this->getType($lastReturnExpr);
307-
$responseObjectType = new ObjectType(Response::class);
307+
$responseObjectType = new ObjectType(SymfonyClass::RESPONSE);
308308

309309
// change contents only if the value is not Respo 3D71 nse yet
310310
if (! $responseObjectType->isSuperTypeOf($returnStaticType)->yes()) {

0 commit comments

Comments
 (0)
0