Skip to content

Commit

Permalink
fix: Districts of a location can be null, this is now adjusted in the…
Browse files Browse the repository at this point in the history
… Location Model
  • Loading branch information
JoeyZandvliet committed Oct 18, 2024
1 parent aa2d88e commit 2c0a509
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions src/Models/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,19 @@

class Location
{
public function __construct(
public string $city,
public string $road,
public string $district,
public string $comment,
) {
public string $city;

public string $road;

public ?string $district;

public string $comment;

public function __construct(string $city, string $road, ?string $district, string $comment)
{
$this->city = $city;
$this->road = $road;
$this->district = $district;
$this->comment = $comment;
}
}

0 comments on commit 2c0a509

Please sign in to comment.