Skip to content

Commit 026eb8a

Browse files
rodrigoprimojrfnl
andauthored
Apply suggestions from code review
Co-authored-by: Juliette <663378+jrfnl@users.noreply.github.com>
1 parent 6d8f58a commit 026eb8a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

WordPress/Tests/Security/NonceVerificationUnitTest.1.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ function allow_fully_qualified_type_test_functions() {
579579
}
580580

581581
function allow_fully_qualified_type_test_functions_uppercase() {
582-
if ( ! \IS_NUMERIC( $_POST['foo'] ) ) { // OK.
582+
if ( ! \IS_int( $_POST['foo'] ) ) { // OK.
583583
return;
584584
}
585585

@@ -588,7 +588,7 @@ function allow_fully_qualified_type_test_functions_uppercase() {
588588

589589
function disallow_namespaced_type_test_functions() {
590590
if ( ! MyNamespace\is_bool( $_POST['foo'] ) // Bad.
591-
|| ! MyNamespace\is_object( $_POST['foo'] ) // Bad.
591+
|| ! \MyNamespace\is_object( $_POST['foo'] ) // Bad.
592592
|| ! namespace\is_string( $_POST['foo'] ) ) // Bad, but should become ok once the sniff is able to resolve relative namespaces.
593593
{
594594
return;

0 commit comments

Comments
 (0)