zephir
zephir copied to clipboard
Reached end of the method without returning a valid type specified in the return-type hints
Error: "Reached end of the method without returning a valid type specified in the return-type hints"
public function testSwitch() -> int
{
var a;
let a = 1;
switch a {
case 1:
default:
return 1;
case 2:
return 2;
}
}