I have a php function:
function myFunc(MyClass inst) {
// ...
}
Sometimes, when I call this function, I dont want to pass any arguments, but this doesn't work:
myFunc(null);
The error message is:
... must be an instance of MyClass , null given