Skip to content

Commit c7022ad

Browse files
committed
NamingConventions/ValidVariableName: allow for PHP 8.4 properties in interfaces
1 parent bf86db1 commit c7022ad

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

WordPress/Tests/NamingConventions/ValidVariableNameUnitTest.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ class MultiVarDeclarations {
189189

190190
echo "This is $post_ID with $ThisShouldBeFlagged"; // Bad.
191191

192-
// Safeguard that illegal property declarations are ignored.
192+
// Properties in interfaces are allowed since PHP 8.4.
193193
interface PropertiesNotAllowed {
194194
public $notAllowed;
195195
}

WordPress/Tests/NamingConventions/ValidVariableNameUnitTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ public function getErrorList() {
8484
184 => 1,
8585
186 => 1,
8686
190 => 1,
87+
194 => 1,
8788
199 => 1,
8889
200 => 1,
8990
202 => 1,

0 commit comments

Comments
 (0)