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 6d8f58a commit 026eb8aCopy full SHA for 026eb8a
1 file changed
WordPress/Tests/Security/NonceVerificationUnitTest.1.inc
@@ -579,7 +579,7 @@ function allow_fully_qualified_type_test_functions() {
579
}
580
581
function allow_fully_qualified_type_test_functions_uppercase() {
582
- if ( ! \IS_NUMERIC( $_POST['foo'] ) ) { // OK.
+ if ( ! \IS_int( $_POST['foo'] ) ) { // OK.
583
return;
584
585
@@ -588,7 +588,7 @@ function allow_fully_qualified_type_test_functions_uppercase() {
588
589
function disallow_namespaced_type_test_functions() {
590
if ( ! MyNamespace\is_bool( $_POST['foo'] ) // Bad.
591
- || ! MyNamespace\is_object( $_POST['foo'] ) // Bad.
+ || ! \MyNamespace\is_object( $_POST['foo'] ) // Bad.
592
|| ! namespace\is_string( $_POST['foo'] ) ) // Bad, but should become ok once the sniff is able to resolve relative namespaces.
593
{
594
0 commit comments