Skip to content

Commit

Permalink
Fix phpstan errors
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Aug 9, 2023
1 parent 6dbf08f commit af79266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/LocationArea.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class LocationArea extends Model implements AreaInterface
public function getConditionsAttribute($value)
{
// backward compatibility v2.0
if (!is_array($conditions = json_decode($value, true))) {
if (!is_array($conditions = json_decode($value ?? '', true))) {
$conditions = [];
}

Expand Down

0 comments on commit af79266

Please sign in to comment.