Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions PhpSIP.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ class PhpSIP
*
* @param $src_ip Ip address to bind (optional)
*/
public function __construct($src_ip = null, $src_port = null, $fr_timer = null)
public function __construct(?string $src_ip = null, ?int $src_port = null, ?int $fr_timer = null)
{
if (!function_exists('socket_create'))
{
Expand Down Expand Up @@ -1328,7 +1328,7 @@ public function setBody($body)
/**
* Sets Content Type
*/
public function setContentType($content_type = null)
public function setContentType(?string $content_type = null)
{
if ($content_type !== null)
{
Expand Down Expand Up @@ -1394,7 +1394,7 @@ public function setCseq($v)
*
* @param string $v
*/
public function setCallId($v = null)
public function setCallId(?string $v = null)
{
if ($v)
{
Expand Down