Skip to content
This repository has been archived by the owner on Jun 12, 2022. It is now read-only.

LedgerMutation getAmountAttribute Error #4

Open
nholliday opened this issue Jun 3, 2019 · 0 comments
Open

LedgerMutation getAmountAttribute Error #4

nholliday opened this issue Jun 3, 2019 · 0 comments

Comments

@nholliday
Copy link
Contributor

The getAmountAttribute function seems to throw an error when called. Fixed by adding the 'new' keyword:

public function getAmountAttribute($value)
{
    return new Money($value, new Currency($this->currency));
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant