4

I'm not trying to say that PHP is not consistent, but it's the only language where you can use two styles of typage in a function definition:

function myFunc(ArgType $arg) : ReturnType
{
//...
return new ReturnType($arg);
}

You must decide, PHP... Not use both...

Comments
Add Comment