From 80888f990ba2112c6a08ca79dac90463f03e277b Mon Sep 17 00:00:00 2001 From: didier Belot Date: Mon, 8 Jan 2018 08:16:13 +0100 Subject: [PATCH] Countries::countries initialized as an empty array * fix sizeof() error with php-7.2.1 * fix misleading comment about path --- src/Webpatser/Countries/Countries.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Webpatser/Countries/Countries.php b/src/Webpatser/Countries/Countries.php index ca21d19..fcbf027 100644 --- a/src/Webpatser/Countries/Countries.php +++ b/src/Webpatser/Countries/Countries.php @@ -11,10 +11,10 @@ class Countries extends Model { /** - * @var string - * Path to the directory containing countries data. + * @var array + * Array containing countries data from JSON file. */ - protected $countries; + protected $countries = []; /** * @var string