Use correct class name.
This commit is contained in:
parent
c678ce7248
commit
b5ae765b93
|
@ -35,8 +35,8 @@ class OrderCache extends ObjectCache {
|
|||
* @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;
|
||||
|
|
Loading…
Reference in New Issue