Skip to content

Commit e46802d

Browse files
committed
Add more types to private methods
1 parent 817aa86 commit e46802d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GeoIP.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ public function getClientIP()
260260
*
261261
* @return bool
262262
*/
263-
private function isValid($ip)
263+
private function isValid($ip): bool
264264
{
265265
if (! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4 | FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE)
266266
&& ! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6 | FILTER_FLAG_NO_PRIV_RANGE)
@@ -279,7 +279,7 @@ private function isValid($ip)
279279
*
280280
* @return bool
281281
*/
282-
private function shouldCache(Location $location, $ip = null)
282+
private function shouldCache(Location $location, $ip = null): bool
283283
{
284284
if ($location->default === true || $location->cached === true) {
285285
return false;

0 commit comments

Comments
 (0)