Skip to content

Commit

Permalink
Merge branch 'bugfix/multisite-token-logic' into bugfix/missing-filter
Browse files Browse the repository at this point in the history
  • Loading branch information
defunctl committed Dec 3, 2024
2 parents 0e03db7 + ac42ee4 commit b7553a7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Configure PHP environment
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
extensions: mbstring, intl
coverage: none
- uses: ramsey/composer-install@v2
- uses: ramsey/composer-install@v3
with:
composer-options: "--ignore-platform-reqs --optimize-autoloader"
- name: Run PHPStan static analysis
Expand Down
2 changes: 1 addition & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ parameters:
level: 5
inferPrivatePropertyTypeFromConstructor: true
reportUnmatchedIgnoredErrors: false
checkGenericClassInNonGenericObjectType: false

# Paths to be analyzed.
paths:
Expand All @@ -26,3 +25,4 @@ parameters:
- '#^Function add_query_arg invoked with [123] parameters?, 0 required\.$#'
# Uses func_get_args()
- '#^Function apply_filters(_ref_array)? invoked with [34567] parameters, 2 required\.$#'
- '#Path in require_once\(\).+is not a file or it does not exist#'
2 changes: 1 addition & 1 deletion src/Uplink/Auth/Admin/Connect_Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function maybe_store_token_data(): void {

if ( ! Nonce::verify( $args[ self::NONCE ] ?? '' ) ) {
if ( ! function_exists( 'is_plugin_active' ) ) {
require_once( ABSPATH . 'wp-admin/includes/plugin.php' );
require_once ABSPATH . 'wp-admin/includes/plugin.php';
}

// The Litespeed plugin allows completely disabling transients for some reason...
Expand Down

0 comments on commit b7553a7

Please sign in to comment.