diff --git a/inc/context.php b/inc/context.php index e747a68d..9e5caef0 100644 --- a/inc/context.php +++ b/inc/context.php @@ -1,8 +1,7 @@ definitions[$name])) { - throw new RuntimeException("Could not find a dependency named $name"); + throw new \RuntimeException("Could not find a dependency named $name"); } $ret = $this->definitions[$name]; @@ -69,13 +68,13 @@ function build_context(array $config): Context { $config['captcha']['hcaptcha']['sitekey'] ); default: - throw new RuntimeException('No remote captcha service available'); + throw new \RuntimeException('No remote captcha service available'); } }, NativeCaptchaQuery::class => function($c) { $config = $c->get('config'); if ($config['captcha']['provider'] !== 'native') { - throw new RuntimeException('No native captcha service available'); + throw new \RuntimeException('No native captcha service available'); } return new NativeCaptchaQuery( $c->get(HttpDriver::class),