-
Notifications
You must be signed in to change notification settings - Fork 155
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
Move some namespaces on reflection #806
Move some namespaces on reflection #806
Conversation
bbb92e5
to
38db714
Compare
8bd4def
to
65797db
Compare
dfcbb0d
to
ffeaa37
Compare
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
$finder->files()->in($path)->name('*.php')->sortByName(true); | ||
|
||
foreach ($finder as $file) { | ||
$fileContent = (string) file_get_contents((string) $file->getRealPath()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$fileContent = (string) file_get_contents((string) $file->getRealPath()); | |
$fileContent = file_get_contents((string) $file->getRealPath()); |
file_get_contents
might return false, so it might be better to handle it explicitly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Thank you, @loic425! |
Based on #805
Only ClassReflection needs a bc-layer cause the other classes have been introduced in 1.11.