Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Fix handling of FQCNs in method parameters #60

Closed
wants to merge 1 commit into from
Closed

Fix handling of FQCNs in method parameters #60

wants to merge 1 commit into from

Conversation

djmattyg007
Copy link
Contributor

@djmattyg007 djmattyg007 commented May 8, 2016

Previously, MethodScanner did not detect a leading T_NS_SEPARATOR
character for a type name. By failing to detect it, it passes it to
ParameterScanner without it, who then dutifully resolves the classname
as if it was relative to the current namespace.

This is obviously incorrect behaviour, and it is fixed with this patch.
Tests have also been added and updated.

Previously, MethodScanner did not detect a leading T_NS_SEPARATOR
character for a type name. By failing to detect it, it passes it to
ParameterScanner without it, who then dutifully resolves the classname
as if it was relative to the current namespace.

This is obviously incorrect behaviour, and it is fixed with this patch.
Tests have also been added and updated.
@djmattyg007
Copy link
Contributor Author

Looks like I messed up a couple of things when submitting the PR. Will close and re-submit.

@djmattyg007 djmattyg007 closed this May 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant