* [FIX] Fixed wrong behavior under testing environment

This commit is contained in:
nuxsmin
2018-08-09 20:42:21 +02:00
parent e28ec274e0
commit 580820efe3

View File

@@ -171,7 +171,11 @@ final class ApiService extends Service
*/
public function getHelp($action)
{
return call_user_func([$this->helpClass, 'getHelpFor'], $action);
if ($this->helpClass !== null) {
return call_user_func([$this->helpClass, 'getHelpFor'], $action);
}
return [];
}
/**