Skip to content

Commit

Permalink
Use correct class name.
Browse files Browse the repository at this point in the history
  • Loading branch information
vedanshujain committed Feb 3, 2023
1 parent c678ce7 commit b5ae765
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/woocommerce/src/Caches/OrderCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ protected function get_object_id( $object ) {
* @return string[]|null An array of error messages, or null if the object is valid.
*/
protected function validate( $object ): ?array {
if ( ! $object instanceof \WC_Abstract_Legacy_Order ) {
return array( 'The supplied order is not an instance of WC_Order, ' . gettype( $object ) );
if ( ! $object instanceof \WC_Abstract_Order ) {
return array( 'The supplied order is not an instance of WC_Abstract_Order, ' . gettype( $object ) );
}

return null;
Expand Down

0 comments on commit b5ae765

Please sign in to comment.