Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP notices when trying to get a country #6

Open
aosmakserato opened this issue May 4, 2021 · 2 comments
Open

PHP notices when trying to get a country #6

aosmakserato opened this issue May 4, 2021 · 2 comments

Comments

@aosmakserato
Copy link

aosmakserato commented May 4, 2021

I am getting php notices when trying to get a country code by a country name.

$country = (new Countries)->getByName('United Kingdom');

Notice: Undefined property: stdClass::$currency in .../vendor/rapidwebltd/php-countries/src/DataSources/MledozeCountriesJson.php on line 47
Notice: Undefined property: stdClass::$callingCode in ../vendor/rapidwebltd/php-countries/src/DataSources/MledozeCountriesJson.php on line 48

I am getting the same notices when I try to get all the countries.

$country = (new Countries)->all();

It looks like those 2 properties simply do not exist.

@mallria
Copy link

mallria commented Sep 7, 2021

How is going?

@mallria
Copy link

mallria commented Sep 7, 2021

We have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants