We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c41f9d commit 40f7ae9Copy full SHA for 40f7ae9
Model/IpToCountryRepository.php
@@ -91,7 +91,8 @@ public function __construct(
91
*/
92
public function getCountryCode($ip)
93
{
94
- if ((string)$ip && !isset($ip)) {
+ $ip = (string)$ip;
95
+ if (!$ip) {
96
return false;
97
}
98
Model/IpToRegionRepository.php
@@ -81,11 +81,12 @@ public function __construct(
81
82
public function getRegionCode($ip)
83
84
85
86
return '';
87
88
- if (!isset($this->ipToRegion[$ip])) {
89
+ if (!isset($this->ipToRegion[$ip])) {
90
$this->ipToRegion[$ip] = '';
try {
0 commit comments