Skip to content

Commit 88d311f

Browse files
committed
Security/NonceVerification: add test using asymmetric visibility properties
This commit adds a test using asymmetric visibility properties to the `WordPress.Security.NonceVerification` tests. This is just to ensure that the sniff continues to ignore PHP 8.4+ asymmetric visibility properties. The sniff was already handling asymmetric visibility properties correctly, and no change to the sniff code is needed.
1 parent fb50666 commit 88d311f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

WordPress/Tests/Security/NonceVerificationUnitTest.8.inc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
class IgnoreProperties {
44
public $_GET = array( 'key' => 'something' ); // OK.
55
public $_POST; // OK.
6+
public private(set) string $_REQUEST; // Ok.
67
}

0 commit comments

Comments
 (0)