Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/CountryLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class CountryLoader
*
* @throws CountryLoaderException
*
* @return Country|array
* @return ($hydrate is true ? Country : array)
*/
public static function country($code, $hydrate = true)
{
Expand All @@ -44,7 +44,7 @@ public static function country($code, $hydrate = true)
*
* @throws CountryLoaderException
*
* @return array
* @return ($hydrate is true ? array<string, Country> : array<string, array>)
*/
public static function countries($longlist = false, $hydrate = false)
{
Expand Down
4 changes: 2 additions & 2 deletions src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @param string $code
* @param bool $hydrate
*
* @return Country|array
* @return ($hydrate is true ? Country : array)
*/
function country($code, $hydrate = true)
{
Expand All @@ -28,7 +28,7 @@ function country($code, $hydrate = true)
* @param bool $longlist
* @param bool $hydrate
*
* @return array
* @return ($hydrate is true ? array<string, Country> : array<string, array>)
*/
function countries($longlist = false, $hydrate = false)
{
Expand Down