Skip to content

Type Error

TypeError occurs when a value does not match the expected type.

function add(int $a, int $b) {
return $a + $b;
}
add("hello",5);