add types
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user