Skip to content

Commit

Permalink
Merge pull request #84 from mateusfccp/master
Browse files Browse the repository at this point in the history
Fix: PHP 7.2 E_WARNING about sizeof()
  • Loading branch information
webpatser committed Jan 3, 2018
2 parents 50e06ee + 4eb34fa commit cf29cdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ You may now run it with the artisan migrate command:

$ php artisan migrate --seed

After running this command the filled countries table will be available
After running this command the filled countries table will be available
2 changes: 1 addition & 1 deletion src/Webpatser/Countries/Countries.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function __construct()
protected function getCountries()
{
//Get the countries from the JSON file
if (sizeof($this->countries) == 0){
if (empty($this->countries)){
$this->countries = json_decode(file_get_contents(__DIR__ . '/Models/countries.json'), true);
}

Expand Down

0 comments on commit cf29cdb

Please sign in to comment.