From 274550cec4f01d0270e150e912a9df3819ed39a3 Mon Sep 17 00:00:00 2001 From: Roman Kelesidis Date: Mon, 20 Mar 2023 15:29:06 +0700 Subject: [PATCH] Minor adjustments (#644) --- common.php | 2 +- src/Helpers/IPHelper.php | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/common.php b/common.php index 1eae70686..4ad1a9dd6 100644 --- a/common.php +++ b/common.php @@ -59,7 +59,7 @@ require_once __DIR__ . '/vendor/autoload.php'; * @param mixed $default * @return mixed */ -function env($key, $default = null) +function env(string $key, $default = null) { return Env::get($key, $default); } diff --git a/src/Helpers/IPHelper.php b/src/Helpers/IPHelper.php index 4cf77b3e0..3e16a6a27 100644 --- a/src/Helpers/IPHelper.php +++ b/src/Helpers/IPHelper.php @@ -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 * - * ------------------------------------------------------------- - * From Symfony + * @param string $ip + * @return string */ public static function anonymizeIP(string $ip): string {