Skip to content

Commit 521f28c

Browse files
rodrigoprimojrfnl
andcommitted
Update WordPress/Tests/PHP/NoSilencedErrorsUnitTest.inc
Co-authored-by: Juliette <[email protected]>
1 parent 58afa65 commit 521f28c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-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.

WordPress/Tests/PHP/NoSilencedErrorsUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public function getWarningList() {
6464
91 => 1,
6565
92 => 1,
6666
93 => 1,
67+
94 => 1,
6768
);
6869
}
6970
}

0 commit comments

Comments
 (0)