Skip to content

Commit

Permalink
chore: Update minimum PHP versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Souptik2001 committed Oct 7, 2022
1 parent c98372f commit aa4ed3f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ generated at `/tmp/report/html`

## Minimum Requirements

WordPress >= 5.4.0
WordPress >= 5.5.0

PHP >= 7.3
PHP >= 7.4

## License

Expand Down
6 changes: 3 additions & 3 deletions login-with-google.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
];

/**
* PHP 7.3+ is required in order to use the plugin.
* PHP 7.4+ is required in order to use the plugin.
*/
if ( version_compare( PHP_VERSION, '7.3', '<' ) ) {
if ( version_compare( PHP_VERSION, '7.4', '<' ) ) {
foreach ( $hooks as $hook ) {
add_action(
$hook,
function () {
$message = __(
'Login with google Plugin requires PHP version 7.3 or higher. <br />Please ask your server administrator to update your environment to latest PHP version',
'Login with google Plugin requires PHP version 7.4 or higher. <br />Please ask your server administrator to update your environment to latest PHP version',
'login-with-google'
);

Expand Down

0 comments on commit aa4ed3f

Please sign in to comment.