Skip to content

Commit

Permalink
dev: make PluginUpdater namespaced functions PSR-4 compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine committed Sep 11, 2024
1 parent d2f2af5 commit 179948c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/smooth-years-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wpengine/wp-graphql-content-blocks": minor
---

dev: make `PluginUpdater` namespaced functions PSR-4 compatible.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions includes/WPGraphQLContentBlocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ static function () {
}//end if
}//end if

require_once WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_DIR . 'includes/updates/update-functions.php';
require_once WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_DIR . 'includes/updates/update-callbacks.php';
require_once WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_DIR . 'includes/PluginUpdater/UpdateFunctions.php';
require_once WPGRAPHQL_CONTENT_BLOCKS_PLUGIN_DIR . 'includes/PluginUpdater/UpdateCallbacks.php';

// phpcs:ignore SlevomatCodingStandard.Variables.UnusedVariable.UnusedVariable -- Library bootstraps itself, hence variable is unused.
$semver = new \EnforceSemVer\EnforceSemVer( WPGRAPHQL_CONTENT_BLOCKS_PATH );
Expand Down
8 changes: 4 additions & 4 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ parameters:
-
message: "#^Access to an undefined property object\\:\\:\\$response\\.$#"
count: 1
path: includes/updates/update-callbacks.php
path: includes/PluginUpdater/UpdateCallbacks.php

-
message: "#^Function WPGraphQL\\\\ContentBlocks\\\\PluginUpdater\\\\custom_plugin_api_request\\(\\) has invalid return type WPGraphQL\\\\ContentBlocks\\\\PluginUpdater\\\\stdClass\\.$#"
count: 1
path: includes/updates/update-callbacks.php
path: includes/PluginUpdater/UpdateCallbacks.php

-
message: "#^Function WPGraphQL\\\\ContentBlocks\\\\PluginUpdater\\\\custom_plugin_api_request\\(\\) should return WPGraphQL\\\\ContentBlocks\\\\PluginUpdater\\\\stdClass\\|false but returns array\\|object\\|false\\.$#"
count: 2
path: includes/updates/update-callbacks.php
path: includes/PluginUpdater/UpdateCallbacks.php

-
message: "#^Function WPGraphQL\\\\ContentBlocks\\\\PluginUpdater\\\\custom_plugin_api_request\\(\\) should return WPGraphQL\\\\ContentBlocks\\\\PluginUpdater\\\\stdClass\\|false but returns object\\.$#"
count: 1
path: includes/updates/update-callbacks.php
path: includes/PluginUpdater/UpdateCallbacks.php

0 comments on commit 179948c

Please sign in to comment.