File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ parameters:
11
11
ignoreErrors:
12
12
# TODO Figure out how to discover the WP_CLI class
13
13
- '#^Call to static method success\(\) on an unknown class WP_CLI\.$#'
14
+ - '#^Unsafe usage of new static\(\).$#'
14
15
# We can't have strong typehints without union types :(
15
16
- '#has no return typehint specified\.#'
16
17
- '#^Parameter \#1 \$term of static method Timber\\Timber::get_term\(\) expects int\|WP_Term\|null, array\|WP_Term given\.$#'
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ public static function post_to_calendar_series(Post $post) : array {
144
144
* @return self
145
145
*/
146
146
public static function from_post (Post $ post ) : self {
147
- return new self ($ post );
147
+ return new static ($ post );
148
148
}
149
149
150
150
/**
You can’t perform that action at this time.
0 commit comments