-
Notifications
You must be signed in to change notification settings - Fork 94
PHPStan level 6 #536
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
PHPStan level 6 #536
Conversation
8f14b59
to
7a36e2a
Compare
*/ | ||
protected function _url( $args, $callback ) { | ||
foreach ( $args as $obj_id ) { | ||
$object = $this->fetcher->get_check( $obj_id ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fetcher
property didn't even exist on this abstract class, and in the extending classes it was private
. So this code never worked. Plus it was never used, so it's safe to remove.
@@ -182,10 +182,6 @@ public function create( $args, $assoc_args ) { | |||
$assoc_args['post_category'] = $this->get_category_ids( $assoc_args['post_category'] ); | |||
} | |||
|
|||
if ( isset( $assoc_args['meta_input'] ) && Utils\wp_version_compare( '4.4', '<' ) ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Figured with our move to WP 4.9+ we can remove this compat code.
Codecov ReportAttention: Patch coverage is
📢 Thoughts on this report? Let us know! |
? $a->$orderby <=> $b->$orderby | ||
: $b->$orderby <=> $a->$orderby; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this is not the wrong way around 🤔
No description provided.