@@ -17,12 +17,12 @@ |
||
17 | 17 | |
18 | 18 | try { |
19 | 19 | $factory->addDir('routes'); |
20 | -} catch (ClassNotFoundException | UpdateRouterMissingMethodException $exception) { |
|
20 | +} catch (ClassNotFoundException|UpdateRouterMissingMethodException $exception) { |
|
21 | 21 | trigger_error( |
22 | 22 | "{$exception->getMessage()} in file {$exception->file}", |
23 | 23 | E_USER_WARNING |
24 | 24 | ); |
25 | -} catch (DirectoryNotFoundException | FileNotFoundException $exception) { |
|
25 | +} catch (DirectoryNotFoundException|FileNotFoundException $exception) { |
|
26 | 26 | trigger_error( |
27 | 27 | "{$exception->file} {$exception->getMessage()}\n", |
28 | 28 | E_USER_ERROR |
@@ -57,7 +57,7 @@ |
||
57 | 57 | * |
58 | 58 | * @return Routes |
59 | 59 | */ |
60 | - public function namespace(?string $ns): Routes |
|
60 | + public function namespace(?string $ns) : Routes |
|
61 | 61 | { |
62 | 62 | $this->router->namespace($ns); |
63 | 63 | return $this; |