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

Ensure locateFunctionByName returns ?string always #268

Merged
merged 2 commits into from
Apr 18, 2017

Conversation

asgrim
Copy link
Member

@asgrim asgrim commented Apr 17, 2017

Fixes #237

Now that we have strict type declarations, I don't think an additional test is necessary - this is essentially a bugfix now IMO...

@asgrim asgrim added the bug label Apr 17, 2017
@asgrim asgrim added this to the 2.0.0 milestone Apr 17, 2017
@asgrim asgrim requested review from Ocramius and malukenho April 17, 2017 21:28
@asgrim asgrim force-pushed the handle-function-reflection-filename-false branch from 5c570c8 to 56bd5b1 Compare April 17, 2017 21:32
return $reflection->getFileName();
$reflectionFileName = $reflection->getFileName();

if (! is_string($reflectionFileName)) {
Copy link
Member

Choose a reason for hiding this comment

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

Test? :-\

Copy link
Member Author

Choose a reason for hiding this comment

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

Added.

@asgrim asgrim requested a review from Ocramius April 18, 2017 05:57
@Ocramius Ocramius merged commit a95cb4e into master Apr 18, 2017
@Ocramius Ocramius deleted the handle-function-reflection-filename-false branch April 18, 2017 11:50
@Ocramius
Copy link
Member

🚢

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.

AutoloadSourceLocator reports false on internal functions: should report null as per interface definition
3 participants