Skip to content

Commit d72fe47

Browse files
rodrigoprimojrfnl
andcommitted
Update WordPress/Tests/PHP/NoSilencedErrorsUnitTest.inc
Co-authored-by: Juliette <663378+jrfnl@users.noreply.github.com>
1 parent 58afa65 commit d72fe47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WordPress/Tests/PHP/NoSilencedErrorsUnitTest.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,6 @@ echo @some_userland_function( $param ); // Bad.
8989
* Safeguard correct handling of namespaced function calls (fully qualified is already tested above).
9090
*/
9191
$file = @MyNS\MyClass::file_get_contents( $file ); // Bad.
92+
$file = @MyNS\MyClass\file_get_contents( $file ); // Bad.
9293
$file = @namespace\MyNS\MyClass::file_get_contents( $file ); // Bad.
9394
$file = @namespace\file_get_contents( $file ); // The sniff should stop flagging this once it can resolve relative namespaces.

0 commit comments

Comments
 (0)