add types
This commit is contained in:
1 parent
88b934bda1
commit
e5907fe3a9
46 files changed
+465
-184
No files matched your search
@@ -11,7 +11,7 @@
|
||||
/**
|
||||
* 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