Skip to content

Commit

Permalink
Upgrade php.
Browse files Browse the repository at this point in the history
  • Loading branch information
wparad committed Jun 17, 2024
1 parent 9f3eff4 commit e61fa46
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Set up environment
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
php-version: 8.3
extensions: mbstring, xml, ctype, iconv, intl
coverage: xdebug

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
],
"require": {
"php": ">=7.4",
"php": ">=8.3",
"lcobucci/jwt": "^4.1",
"guzzlehttp/guzzle": "^7.0",
"codercat/jwk-to-pem": "^1.1"
Expand Down
4 changes: 2 additions & 2 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function authress_user_is_currently_on_login_action( array $actions ) {
return false;
}

if (isset( $_REQUEST['force'] ) && $_REQUEST['force']) {
if ( isset( $_REQUEST['force'] )) {
return true;
}

Expand Down
3 changes: 2 additions & 1 deletion lib/Authress_Sso_Login_UsersRepo.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,9 @@ public function create( $userinfo ) {
if ( ! empty( $current_authress_id ) && $authress_sub !== $current_authress_id ) {
throw new Authress_Sso_Login_CouldNotCreateUserException( __( 'There is a user with the same email.', 'wp-authress' ) );
}
// } elseif ( ( is_multisite() ? users_can_register_signup_filter() : get_site_option( 'users_can_register' ) ) || $this->a0_options->get( 'auto_provisioning' ) ) {
} else {
// } elseif ( ( is_multisite() ? users_can_register_signup_filter() : get_site_option( 'users_can_register' ) ) || $this->a0_options->get( 'auto_provisioning' ) ) {

// WP user does not exist and registration is allowed.
$user_id = Authress_Sso_Login_Users::create_user( $userinfo );

Expand Down
2 changes: 1 addition & 1 deletion wordpress/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Contributors: authress
Tags: Login, SSO, OAuth, SAML, Single Sign-on
Requires at least: 5.5
Requires PHP: 7.4
Requires PHP: 8.2
Tested up to: 6.5
Stable tag: {{VERSION}}
License: Apache-2.0
Expand Down

0 comments on commit e61fa46

Please sign in to comment.