Skip to content

Commit 5b28561

Browse files
committed
Security/EscapeOutput: remove unintentional syntax error from the tests
Remove extra closing parenthesis that was causing a syntax error in a ::class test case. This test was added in 2326 and there is nothing in the corresponding commit message that this indicates this was an intentional syntax error.
1 parent bf362c6 commit 5b28561

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WordPress/Tests/Security/EscapeOutputUnitTest.1.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ _deprecated_function( __METHOD__, 'x.x.x', ClassName::class ); // OK.
538538
die( self::CLASS . ' has been abandoned' ); // OK.
539539
_deprecated_function( __METHOD__, 'x.x.x', parent::Class ); // OK.
540540
_deprecated_function( __METHOD__, 'x.x.x', static::class ); // OK.
541-
echo 'Do not use ' . $object::class ); // OK.
541+
echo 'Do not use ' . $object::class; // OK.
542542

543543
/*
544544
* Examine the parameters passed for exception creation via throw.

0 commit comments

Comments
 (0)