Skip to content

something wrong when I use this package #2

Description

@ChenRuihua

I use this package like this:

use DecimalObjectCast;
protected $casts = [
'price' => 'decimal',
'amount' => 'decimal',
];

but have error.

Declaration of Decimal\DecimalObjectCast::asDecimal(Decimal\Decimal $value, $decimals) should be compatible with Illuminate\Database\Eloquent\Model::asDecimal($value, $decimals)

is there have a readme about this package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions