Skip to content

Add failing tests for method annotation#3003

Merged
TomasVotruba merged 4 commits intorectorphp:masterfrom
stedekay:failing-tests-for-method-annotation
Mar 4, 2020
Merged

Add failing tests for method annotation#3003
TomasVotruba merged 4 commits intorectorphp:masterfrom
stedekay:failing-tests-for-method-annotation

Conversation

@stedekay
Copy link
Copy Markdown
Contributor

@stedekay stedekay commented Mar 4, 2020

I've added two failing tests for the MergeMethodAnnotationToRouteAnnotationRector.
In my opinion it shouldn't change the template annotation and it seems that the method won't be merged if some other annotation stands between the Route and Method annoation.

When the tests will get fixed, this PR will fix issue #2785.

I wasn't able to get this fixed by myself, maybe you could help me?

@TomasVotruba
Copy link
Copy Markdown
Member

Could you fix conflicts? I can't merge it now

@stedekay
Copy link
Copy Markdown
Contributor Author

stedekay commented Mar 4, 2020

Sorry, got totally confused with the syncing of the repositories. Now it should be fine.

@TomasVotruba
Copy link
Copy Markdown
Member

It shows 3000 changed files now :D

That happens. I usually delete the work, re-fork it again and apply the changes again.

@stedekay
Copy link
Copy Markdown
Contributor Author

stedekay commented Mar 4, 2020

Now I'm even more confused. I can only see 2 file changes (?).

@TomasVotruba
Copy link
Copy Markdown
Member

Oh, it showed me 3000 files a while ago.

I'll check it

@TomasVotruba TomasVotruba merged commit baa057d into rectorphp:master Mar 4, 2020
TomasVotruba added a commit that referenced this pull request Oct 19, 2022
rectorphp/rector-src@e4ec1f9 [Php70] Handle crash on First class callable on ThisCallOnStaticMethodToStaticCallRector (#3003)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants