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 817aa86 commit e46802dCopy full SHA for e46802d
src/GeoIP.php
@@ -260,7 +260,7 @@ public function getClientIP()
260
*
261
* @return bool
262
*/
263
- private function isValid($ip)
+ private function isValid($ip): bool
264
{
265
if (! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)
266
&& ! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 | FILTER_FLAG_NO_PRIV_RANGE)
@@ -279,7 +279,7 @@ private function isValid($ip)
279
280
281
282
- private function shouldCache(Location $location, $ip = null)
+ private function shouldCache(Location $location, $ip = null): bool
283
284
if ($location->default === true || $location->cached === true) {
285
return false;
0 commit comments