Skip to content

Commit

Permalink
Merge pull request #15028 from Yoast/ignore-stub-from-php-cs
Browse files Browse the repository at this point in the history
Exclude line from phpcs because we are stubbing the suggested method
  • Loading branch information
Andy committed May 1, 2020
2 parents 4201f89 + 06d9849 commit d7e77f6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ protected function setUp() {
},
'wp_strip_all_tags' => function( $string, $remove_breaks = false ) {
$string = \preg_replace( '@<(script|style)[^>]*?>.*?</\\1>@si', '', $string );
// phpcs:ignore WordPress.WP.AlternativeFunctions.strip_tags -- We are stubbing the wp_strip_all_tags.
$string = \strip_tags( $string );

if ( $remove_breaks ) {
Expand Down

0 comments on commit d7e77f6

Please sign in to comment.