add types

This commit is contained in:
2024-05-06 17:13:38 +05:00
parent 88b934bda1
commit e5907fe3a9
46 changed files with 465 additions and 184 deletions

View File

@@ -11,7 +11,7 @@ use Stevebauman\Location\Facades\Location;
/**
* Check if a client IP is in our Server subnet
*
* @param string $server_ip
* @param string $ip
*/
function isLocalIp(string $ip = ''): bool
{
@@ -39,13 +39,13 @@ function isTurkmenIp(string $ip = ''): bool
*/
function unMaskPhone(string|int $phone): string
{
return substr(str_replace(['+', '(', ')', '-', '_'], '', $phone), 3);
return substr(str_replace(['+', '(', ')', '-', '_'], '', strval($phone)), 3);
}
/**
* Send a sms
*
* @return void
* @return mixed|void
*/
function sendSMS(string|int $phone, string|int $message)
{