Skip to content

moving to generic tag node#3281

Merged
TomasVotruba merged 2 commits intomasterfrom
tag-value-node-2
Apr 30, 2020
Merged

moving to generic tag node#3281
TomasVotruba merged 2 commits intomasterfrom
tag-value-node-2

Conversation

@TomasVotruba
Copy link
Copy Markdown
Member

No description provided.

@TomasVotruba TomasVotruba force-pushed the tag-value-node-2 branch 3 times, most recently from 627ea65 to 0624c81 Compare April 30, 2020 07:37
@TomasVotruba TomasVotruba merged commit b161d55 into master Apr 30, 2020
@TomasVotruba TomasVotruba deleted the tag-value-node-2 branch April 30, 2020 07:52
}

if (is_object($annotationOrItems)) {
return get_object_vars($annotationOrItems);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@TomasVotruba For some reason, this breaks Rector in my application. A Symfony\Component\Routing\Annotation\Route object returns [] in my case.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll try to find out why it fails in my application while the tests are OK, but it's hard to keep up with your development speed at this moment.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for such a fast testing, wow!

That's caused by Route annotation having private properties (made fake public in tests here for now) and get_object_vars() works only on public ones.

Do you have idea how to get into private properties of an object? Effectively.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR tests this bug, see: #3285

TomasVotruba added a commit that referenced this pull request Jan 13, 2023
rectorphp/rector-src@774de56 Fix AddMethodCallBasedStrictParamTypeRector for invalid generics type (#3281)
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.

2 participants