Skip to content

Commit

Permalink
Ignore unused variable. This is a common test pattern in Core.
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Sep 9, 2022
1 parent 2b8cf11 commit 7d61118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpunit/script-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class WP_Script_Loader_Test extends WP_UnitTestCase {
* @global WP_Styles $wp_styles
*/
public function clean_up_global_scope() {
global $wp_styles;
global $wp_styles; // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
parent::clean_up_global_scope();
$wp_styles = null;
}
Expand Down

0 comments on commit 7d61118

Please sign in to comment.