Ho questo codiceControllare se la funzione PHP restituisce un valore nullo o niente
$return = $ep->$method($params);
if ($return === null) {
throw new Exception('Endpoint has no return value');
}
return $return;
Esiste un modo per distinguere tra un metodo che restituisce null
e un metodo che non restituisce nulla?
Non è questo lavoro 'if ($ ritorno === "") {}'? – KeepMove