Skip to content

Commit 33cfd75

Browse files
committed
Update NullableCurrencyCast
1 parent 53a3f1f commit 33cfd75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NullableCurrencyCast.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class NullableCurrencyCast extends CurrencyCast
2020
*/
2121
public function get($model, $key, $value, $attributes)
2222
{
23-
if ($value === null) {
23+
if (null === $value) {
2424
return null;
2525
}
2626

0 commit comments

Comments
 (0)