Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Reflection\FileReflection without including file? #25

Closed
weierophinney opened this issue Dec 31, 2019 · 2 comments
Closed

Use Reflection\FileReflection without including file? #25

weierophinney opened this issue Dec 31, 2019 · 2 comments
Assignees
Labels
Question Further information is requested Won't Fix This will not be worked on
Milestone

Comments

@weierophinney
Copy link
Member

From zendframework/zendframework#6860 which was just closed:

It looks like FileReflection uses token_get_all(file_get_contents($file)) to actually scan the file, so I am a little lost by the requirement of includeing it.

I am trying to fix some PHP classes programmatically, all of which have the same class name in the global namespace. To do this I was planning to reflect the files, get the class reflection, and instantiate the class generator from that to make my changes. Of course, since reflecting the file requires including it, I cannot do this right now, as it would have to re-declare the classes.

/cc @sasezaki @adamlundrigan who had activity on previous issue


Originally posted by @RSully at zendframework/zend-code#71

@weierophinney
Copy link
Member Author

@Ocramius
Copy link
Member

Closing: FileReflection will be gone with #58

@Ocramius Ocramius self-assigned this Nov 30, 2020
@Ocramius Ocramius added Question Further information is requested Won't Fix This will not be worked on labels Nov 30, 2020
@Ocramius Ocramius added this to the 4.0.0 milestone Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question Further information is requested Won't Fix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants