You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
namespace Phalcon\Mvc;
class Router
{
protected action = null;
/**
* Returns the processed action name
*/
public function getActionName() -> string
{
return this->action;
}
}
This class will return null when getActionName() is called even when our return type specifies it as a string. I'm expecting a Fatal error: Uncaught TypeError.
It would be nice if our static code analyser / compiler would detect that our member variable is incompatible.
The text was updated successfully, but these errors were encountered:
See below simplified Router class.
This class will return null when getActionName() is called even when our return type specifies it as a string. I'm expecting a Fatal error: Uncaught TypeError.
It would be nice if our static code analyser / compiler would detect that our member variable is incompatible.
The text was updated successfully, but these errors were encountered: