Type Error
TypeError occurs when a value does not match the expected type.
Example
Section titled “Example”function add(int $a, int $b) {return $a + $b;}
add("hello",5);TypeError occurs when a value does not match the expected type.
function add(int $a, int $b) {return $a + $b;}
add("hello",5);