We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58afa65 commit d72fe47Copy full SHA for d72fe47
WordPress/Tests/PHP/NoSilencedErrorsUnitTest.inc
@@ -89,5 +89,6 @@ echo @some_userland_function( $param ); // Bad.
89
* Safeguard correct handling of namespaced function calls (fully qualified is already tested above).
90
*/
91
$file = @MyNS\MyClass::file_get_contents( $file ); // Bad.
92
+$file = @MyNS\MyClass\file_get_contents( $file ); // Bad.
93
$file = @namespace\MyNS\MyClass::file_get_contents( $file ); // Bad.
94
$file = @namespace\file_get_contents( $file ); // The sniff should stop flagging this once it can resolve relative namespaces.
0 commit comments