@@ -91,7 +91,7 @@ public function __construct(array $options = [], RouterInterface $router = null)
9191 * @param array $options
9292 * @throws \LogicException
9393 */
94- public function initOptions (array $ options )
94+ public function initOptions (array $ options ): void
9595 {
9696 if ($ this ->initialized ) {
9797 throw new \LogicException ('Has already started to distributed routing, and configuration is not allowed! ' );
@@ -133,7 +133,7 @@ public function dispatchUri(string $path = null, string $method = null)
133133 $ method = \strtoupper ($ method );
134134
135135 /** @var Route $route */
136- list ( $ status , $ path , $ route) = $ this ->router ->match ($ path , $ method );
136+ [ $ status , $ path , $ route] = $ this ->router ->match ($ path , $ method );
137137
138138 return $ this ->dispatch ($ status , $ path , $ method , $ route );
139139 }
@@ -381,7 +381,7 @@ protected function fire(string $event, array $args = [])
381381 * @param string $name
382382 * @param $value
383383 */
384- public function setOption (string $ name , $ value )
384+ public function setOption (string $ name , $ value ): void
385385 {
386386 $ this ->options [$ name ] = $ value ;
387387 }
@@ -455,7 +455,7 @@ public function getOptions(): array
455455 /**
456456 * @param array $options
457457 */
458- public function setOptions (array $ options )
458+ public function setOptions (array $ options ): void
459459 {
460460 $ this ->options = \array_merge ($ this ->options , $ options );
461461 }
0 commit comments