-
-
Notifications
You must be signed in to change notification settings - Fork 506
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
5 additions
and
5 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -122,7 +122,7 @@ class MenuItem extends CoreEntity | |
* @param Menu $menu The `Menu` object the menu item is associated with. | ||
* @return MenuItem a new MenuItem instance | ||
*/ | ||
public static function build($data, ?Menu $menu = null): self | ||
public static function build($data, ?Menu $menu = null): static | ||
Check failure on line 125 in src/MenuItem.php GitHub Actions / PHP static analysis
|
||
{ | ||
return new static($data, $menu); | ||
} | ||
|
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 |
---|---|---|
|
@@ -175,7 +175,7 @@ class Post extends CoreEntity implements DatedInterface, Setupable | |
* @internal | ||
* @return Post | ||
*/ | ||
public static function build(WP_Post $wp_post): self | ||
public static function build(WP_Post $wp_post): static | ||
Check failure on line 178 in src/Post.php GitHub Actions / PHP static analysis
|
||
{ | ||
$post = new static(); | ||
|
||
|
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 |
---|---|---|
|
@@ -83,7 +83,7 @@ protected function __construct() | |
* @param WP_Term $wp_term The vanilla WordPress term object to build from. | ||
* @return Term | ||
*/ | ||
public static function build(WP_Term $wp_term): self | ||
public static function build(WP_Term $wp_term): static | ||
Check failure on line 86 in src/Term.php GitHub Actions / PHP static analysis
|
||
{ | ||
$term = new static(); | ||
$term->init($wp_term); | ||
|
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