-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DeclarationCompatibility: fix incorrect signature check for `Walker::…
…walk()` ... and `Walker::paged_walk()`. The method signature of both the `Walker::walk()` method as well as the `Walker::paged_walk()` method were changed in WordPress 5.3 to make the variadic nature of the allowed arguments explicit. This changes update the sniff to verify the signature of these methods in child classes against the new method signature as it is in WordPress Core. Refs: * https://make.wordpress.org/core/2019/10/09/wp-5-3-introducing-the-spread-operator/ * https://core.trac.wordpress.org/changeset/46442 Fixes 448
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,8 @@ public function getErrorList() { | |
112 => 1, | ||
119 => 1, | ||
128 => 1, | ||
134 => 1, | ||
137 => 1, | ||
]; | ||
} | ||
|
||
|