In PHP the variable of type integer automatically converts into a string when it's passed to a function.
Code:
public function setId($id)
{
var_dump($id);
// call of method "checkIfInteger" --> is_int($arg)
}
Why is this happening? Can someone please help me with this?