2 added 7 characters in body
source | link

vendor->magento->framework->pricing->amount->AmountFactory.php public function create($amount, array $adjustmentAmounts = []) { $amountModel = $this->objectManager->create( self::DEFAULT_PRICE_AMOUNT_CLASS, [ 'amount' => round($amount), 'adjustmentAmounts' => $adjustmentAmounts ] );

vendor/magento/framework/pricing/amount/AmountFactory.php

public function create($amount, array $adjustmentAmounts = [])
{
    $amountModel = $this->objectManager->create(
        self::DEFAULT_PRICE_AMOUNT_CLASS,
        [
            'amount' => **round($amount)**,
            'adjustmentAmounts' => $adjustmentAmounts
        ]
    );

    if (!$amountModel instanceof \Magento\Framework\Pricing\Amount\AmountInterface) {
        throw new \InvalidArgumentException(
            get_class($amountModel) . ' doesn\'t implement \Magento\Framework\Pricing\Amount\AmountInterface'
        );
    }

    return $amountModel;
}

vendor->magento->framework->pricing->amount->AmountFactory.php public function create($amount, array $adjustmentAmounts = []) { $amountModel = $this->objectManager->create( self::DEFAULT_PRICE_AMOUNT_CLASS, [ 'amount' => round($amount), 'adjustmentAmounts' => $adjustmentAmounts ] );

    if (!$amountModel instanceof \Magento\Framework\Pricing\Amount\AmountInterface) {
        throw new \InvalidArgumentException(
            get_class($amountModel) . ' doesn\'t implement \Magento\Framework\Pricing\Amount\AmountInterface'
        );
    }

    return $amountModel;
}

vendor/magento/framework/pricing/amount/AmountFactory.php

public function create($amount, array $adjustmentAmounts = [])
{
    $amountModel = $this->objectManager->create(
        self::DEFAULT_PRICE_AMOUNT_CLASS,
        [
            'amount' => **round($amount)**,
            'adjustmentAmounts' => $adjustmentAmounts
        ]
    );

    if (!$amountModel instanceof \Magento\Framework\Pricing\Amount\AmountInterface) {
        throw new \InvalidArgumentException(
            get_class($amountModel) . ' doesn\'t implement \Magento\Framework\Pricing\Amount\AmountInterface'
        );
    }

    return $amountModel;
}
1
source | link

vendor->magento->framework->pricing->amount->AmountFactory.php public function create($amount, array $adjustmentAmounts = []) { $amountModel = $this->objectManager->create( self::DEFAULT_PRICE_AMOUNT_CLASS, [ 'amount' => round($amount), 'adjustmentAmounts' => $adjustmentAmounts ] );

    if (!$amountModel instanceof \Magento\Framework\Pricing\Amount\AmountInterface) {
        throw new \InvalidArgumentException(
            get_class($amountModel) . ' doesn\'t implement \Magento\Framework\Pricing\Amount\AmountInterface'
        );
    }

    return $amountModel;
}