Skip to content

Unable to have a float/decimal value in Cart item price #32

@lumikcz

Description

@lumikcz

The CartItemInterface.php uses int data type for price value:

public function getPrice(): int;

I believe that more correct would be to have this value float/double to support decimal values in prices. In version <1.4 it was originally untyped function, so it was no problem.

I propose changing the signature to float.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions