Skip to content

Commit

Permalink
Closes #6946 Ignore PHPstan error related to require (#6962)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tabrisrp authored Sep 11, 2024
1 parent a386683 commit 84982f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions inc/Engine/Admin/Settings/Render.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ public function render_form_sections() {
*/
public function render_imagify_section() {

// @phpstan-ignore-next-line
require_once ABSPATH . 'wp-admin/includes/plugin-install.php';

$plugin_data = get_transient( 'rocket_imagify_plugin_data' );
Expand Down
1 change: 1 addition & 0 deletions inc/Engine/Plugin/UpdaterSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ public function rollback() {

set_site_transient( 'update_plugins', $plugin_transient );

// @phpstan-ignore-next-line
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader.php';

// translators: %s is the plugin name.
Expand Down

0 comments on commit 84982f8

Please sign in to comment.