Unless I'm missing it, I'm not really seeing return types as part of the API documentation.
For example, if you go here:
https://docs.phalcon.io/en/latest/api/Phalcon_Application.html
You will see that there is a method called handle()
. However, it does not showcase the return type, which does exist. This causes confusion when developers are trying to understand how code like this might work:
$application = new Application($di);
$response = $application->handle();
$response->send();