[go: up one dir, main page]

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

[Static Handling] Remove unnecessary function call #435

Merged
merged 1 commit into from
Oct 24, 2018

Conversation

acasademont
Copy link
Contributor

Removed an unnecessary file_exists call, the following is_file already does the job and they are both equally fast.

Also improved code readability by using early returns when possible

@acasademont
Copy link
Contributor Author

I don't really understand the travis failure, seems totally unrelated to this code.

@andig
Copy link
Contributor
andig commented Oct 24, 2018

Probably due to newer phpstan version that finds more errors than before

@acasademont
Copy link
Contributor Author

@andig yeah I looked at it, still don't know why it reports that failure, print_r with the second argument to true returns a string, not a boolean.

@andig andig merged commit aa042e0 into php-pm:master Oct 24, 2018
@andig
Copy link
Contributor
andig commented Oct 24, 2018

Right- looks like a bug in phpstan. Too tired to open an issue today....

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