Update getCustomerCache return type to xlvask_customer for stricter type handling and remove redundant newlines in xlvask_tasks.php
This commit is contained in:
@@ -146,8 +146,6 @@ class xlvask_tasks
|
||||
//echo 'MISSING USER: ' . $customer->name . ' (' . $customer->externId . ')' . PHP_EOL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $with_external_id; // Return the synchronized customers
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ interface xlvask_cache_i
|
||||
* @return object The cached customer object.
|
||||
* @throws Exception If the customer is not cached.
|
||||
*/
|
||||
public function getCustomerCache(int $customer_number): object;
|
||||
public function getCustomerCache(int $customer_number): xlvask_customer;
|
||||
|
||||
/**
|
||||
* Set the cache for a specific customer.
|
||||
|
||||
Reference in New Issue
Block a user