mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 11:24:03 +00:00
Correct typehint
This commit is contained in:
parent
1fb607f352
commit
3a7deadd19
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ test('Money value is immutable', function () {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$money->value = 200;
|
$money->value = 200;
|
||||||
} catch (\Throwable $th) {
|
} catch (Error $th) {
|
||||||
expect($th->getMessage())->toStartWith('Cannot access protected property');
|
expect($th->getMessage())->toStartWith('Cannot access protected property');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -21,7 +21,7 @@ test('Money currency is immutable', function () {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$money->currency = 'EUR';
|
$money->currency = 'EUR';
|
||||||
} catch (\Throwable $th) {
|
} catch (Error $th) {
|
||||||
expect($th->getMessage())->toStartWith('Cannot access protected property');
|
expect($th->getMessage())->toStartWith('Cannot access protected property');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue