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

Display a warning if using an EOL version of PHP #14201

Merged
merged 1 commit into from Mar 29, 2019
Merged

Display a warning if using an EOL version of PHP #14201

merged 1 commit into from Mar 29, 2019

Conversation

katebutler
Copy link

Warn the user if their version of PHP is < 7.1

image

Fixes #14174

@diosmosis diosmosis added this to the 3.10.0 milestone Mar 17, 2019
@diosmosis diosmosis added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Mar 17, 2019
Copy link
Member

@diosmosis diosmosis left a comment

Choose a reason for hiding this comment

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

UI tests will need to be updated before merge

@mattab mattab modified the milestones: 3.11.0, 3.10.0 Mar 19, 2019
@@ -207,7 +207,7 @@ private static function notifyIfEAcceleratorIsUsed()
*/
private static function getNextRequiredMinimumPHP()
{
return '5.5.9';
return '7.1';
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be better to move this to const and use it in line 371 as well?

@@ -365,8 +366,8 @@ protected static function getPiwikVersion()
return "Matomo " . Version::VERSION;
}

private static function isPhpVersionAtLeast55()
private static function isPhpVersionAtLeast71()
Copy link
Contributor

Choose a reason for hiding this comment

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

What do you think about renaming that method to isMinimalSupportedPhpVersion() or something along this line? There will be no need to rename it in the future.

@diosmosis diosmosis merged commit 458f0fa into 3.x-dev Mar 29, 2019
@diosmosis diosmosis deleted the 14174 branch March 29, 2019 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants