Skip to content

Commit

Permalink
Merge pull request #6 from Laravel-Lang/1.x
Browse files Browse the repository at this point in the history
`nativeName` and `localizedName` parameters was renamed to `native` and `localized`
  • Loading branch information
andrey-helldar authored Nov 20, 2023
2 parents 619c89d + 343b462 commit b1e8600
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Data/CountryData.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,16 @@ class CountryData implements Arrayable
{
public function __construct(
public string $code,
public string $nativeName,
public string $localizedName
public string $native,
public string $localized
) {}

public function toArray(): array
{
return [
'code' => $this->code,

'native' => $this->nativeName,
'localized' => $this->localizedName,
'code' => $this->code,
'native' => $this->native,
'localized' => $this->localized,
];
}
}

0 comments on commit b1e8600

Please sign in to comment.