J'ai ce codeVérifiez si la fonction PHP retourne null ou rien
$return = $ep->$method($params);
if ($return === null) {
throw new Exception('Endpoint has no return value');
}
return $return;
Est-il possible de faire la distinction entre une méthode qui retourne null
et une méthode qui ne retourne rien?
Est-ce ne fonctionne pas si '(retour $ === "") {}'? – KeepMove