diff --git a/app/Router/Collection.php b/app/Router/Collection.php index bbbad3b..d430c8a 100644 --- a/app/Router/Collection.php +++ b/app/Router/Collection.php @@ -81,7 +81,7 @@ class Collection public function url($name, $params = []) { if (!array_key_exists($name, $this->names)) { - throw new Exception; + throw new \Exception; } return parse_url('/' . $this->names[$name]->path, PHP_URL_PATH); diff --git a/app/User.php b/app/User.php index c6064a0..0b5850e 100644 --- a/app/User.php +++ b/app/User.php @@ -10,6 +10,7 @@ use Carbon\Carbon; use LastFmApi\Api\AuthApi; use LastFmApi\Api\UserApi; use LastFmApi\Exception\LastFmApiExeption; +use Sakura\Exceptions\NetAddressTypeException; use Sakura\Perms; use Sakura\Perms\Site; use stdClass;