$this->
buildViolation( 'The defined tax rate is required when fixed tax present',
['{{ taxId }}' => null
],
'/taxId',
$taxType,
self::VIOLATION_TAX_ID_REQUIRED
) );
} if ($violations->
count() > 0
) { $event->
getExceptions()->
add(new WriteConstraintViolationException($violations,
$command->
getPath()));
} } } /**
* @return array<string, mixed>
*/
private function findShippingMethod(string
$shippingMethodId): array
{ $shippingMethod =
$this->connection->
executeQuery( 'SELECT `tax_type`, `tax_id` FROM `shipping_method` WHERE `id` = :id',
[