Skip to content

BinaryOpBetweenNumberAndStringRector should ignore concatenation "." but it doesn't #1501

@Aerendir

Description

@Aerendir
    ---------- begin diff ----------
--- Original
+++ New
@@ -319,7 +319,7 @@
                 throw new MissingConnectionParameterException('You need to pass an ID to make a request for a Resource.');
             }

-            return $this->requestUrl . '/' . $this->resourceId;
+            return 0 . $this->resourceId;
         }

         return $this->requestUrl;
    ----------- end diff -----------

Applied rectors:

 * Rector\Php\Rector\BinaryOp\BinaryOpBetweenNumberAndStringRector

I expect that this concatenation is simply ignored and not transformed in this way as I need an URL in return, not what actually returns the transformed code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions