Make internal method private

This commit is contained in:
Emili Castells Guasch 2025-08-06 14:21:09 +02:00
parent 0ed05ac1ea
commit 64c140ab23
No known key found for this signature in database

View file

@ -348,7 +348,7 @@ class PurchaseUnitFactory {
*
* @return bool
*/
public function should_disable_shipping( array $items, ?Address $shipping_address ): bool {
private function should_disable_shipping( array $items, ?Address $shipping_address ): bool {
return ! $this->shipping_needed( ... array_values( $items ) ) ||
! $shipping_address ||
empty( $shipping_address->country_code() ) ||