Skip to content

[TypeDeclaration] Add AddMethodCallBasedParamTypeRector#2019

Merged
TomasVotruba merged 1 commit intomasterfrom
uuid-3-method-call
Sep 24, 2019
Merged

[TypeDeclaration] Add AddMethodCallBasedParamTypeRector#2019
TomasVotruba merged 1 commit intomasterfrom
uuid-3-method-call

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

@TomasVotruba TomasVotruba commented Sep 24, 2019

Closes #1887

 class CallerClassForSecondPosition
 {
     public function run()
     {
         $building = new Apple();
         $someClass = new SecondPosition();
         $someClass->process('hi', $building->getId());
     }
 }

 class SecondPosition
 {
-    public function process($name, $id)
+    public function process(string $name, \Ramsey\Uuid\UuidInterface $id)
     {
     }
 }

@TomasVotruba TomasVotruba force-pushed the uuid-3-method-call branch 4 times, most recently from 1a99cff to efdcb46 Compare September 24, 2019 12:54
@TomasVotruba TomasVotruba changed the title [Doctrine] Add ChangeMethodParamWithPassedGetIdToUuidTypeRector [TypeDeclaration] Add AddMethodCallBasedParamTypeRector Sep 24, 2019
@TomasVotruba TomasVotruba merged commit b8de750 into master Sep 24, 2019
@TomasVotruba TomasVotruba deleted the uuid-3-method-call branch September 24, 2019 13:20
TomasVotruba added a commit that referenced this pull request Apr 8, 2022
rectorphp/rector-src@c20f230 Add RectorConfigurator for custom configuration methods and avoid conflicts with Symfony API (#2019)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add param type inferer based on passed arguments

1 participant