Minor adjustments (#644)

This commit is contained in:
Roman Kelesidis 2023-03-20 15:29:06 +07:00 committed by GitHub
commit 274550cec4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View file

@ -59,7 +59,7 @@ require_once __DIR__ . '/vendor/autoload.php';
* @param mixed $default * @param mixed $default
* @return mixed * @return mixed
*/ */
function env($key, $default = null) function env(string $key, $default = null)
{ {
return Env::get($key, $default); return Env::get($key, $default);
} }

View file

@ -93,12 +93,11 @@ class IPHelper
} }
/** /**
* Anonymizes an IP/IPv6. * Anonymize an IP/IPv6.
*
* Removes the last byte for v4 and the last 8 bytes for v6 IPs * Removes the last byte for v4 and the last 8 bytes for v6 IPs
* *
* ------------------------------------------------------------- * @param string $ip
* From Symfony * @return string
*/ */
public static function anonymizeIP(string $ip): string public static function anonymizeIP(string $ip): string
{ {