-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Fix install/upgrade/upgrade.php for php-5.4 syntax #7832
Fix install/upgrade/upgrade.php for php-5.4 syntax #7832
Conversation
transkontrol
commented
Apr 27, 2017
Questions | Answers |
---|---|
Branch? | "develop" |
Description? | fix install/upgrade/upgrade.php for php-5.4 syntax |
Type? | bug fix |
Category? | IN |
BC breaks? | no |
Deprecations? | no |
Fixed ticket? | - |
How to test? | update application at php-5.4 |
Hello transkontrol! This is your first pull request on the PrestaShop project. Thank you, and welcome to this Open Source community! |
Thank you for your contribution! Sadly, you now have malformed commits instead of just one commit:
Could you try and squash those commits into just one? Another explanation of squashing. Thank you! |
6b14739
to
169f69b
Compare
complete! |
install-dev/upgrade/upgrade.php
Outdated
@@ -110,7 +110,8 @@ | |||
} | |||
|
|||
$result = '<?xml version="1.0" encoding="UTF-8"?>'; | |||
if (empty($upgrade->hasFailure())) { | |||
$hasFailure = $upgrade->hasFailure(); |
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.
Actually, when we look at this function, we can find:
public function hasFailure()
{
return !empty($this->failureList);
}
I don't understand why we have an empty()
at the first place.
if (!$upgrade->hasFailure()) {
should be enough.
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.
Sorry, do you mean that you fix it now without PR?
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.
It depends if you want a contribution on this. If you put the change in your PR, I will merge it. Otherwise I wil open another one. 😉
IN: fix install/upgrade/upgrade.php for php-5.4 syntax
a5653ac
to
d57c0bc
Compare
Perfect, thank you @transkontrol |
…php54 Fix install/upgrade/upgrade.php for php-5.4 syntax
…php54 Fix install/upgrade/upgrade.php for php-5.4 syntax