You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Zend\Expressive\Router\RouterInface states on addRoute():
/**
* ...
*
* The method MUST raise Exception\RuntimeException if called after either `match()`
* or `generateUri()` have already been called, to ensure integrity of the
* router between invocations of either of those methods.
*
* @throws Exception\RuntimeException when called after match() or
* generateUri() have been called.
*/
public function addRoute(Route $route) : void;
A Zend\Expressive\Router\Exception\RuntimeException is thrown indicating that no routes may be added after calling match().
Actual results
Scripts run without an exception.
Consequences
Is this a bug in the RouterInterface of "zend-expressive-router" or in the FastRouteRouter of this repo?
(Same "error" (?) is in the "zend-expressive-zendrouter").
The
Zend\Expressive\Router\RouterInface
states onaddRoute()
:But no RuntimeException will be thrown / raised.
Code to reproduce the issue
Expected results
A
Zend\Expressive\Router\Exception\RuntimeException
is thrown indicating that no routes may be added after callingmatch()
.Actual results
Scripts run without an exception.
Consequences
Is this a bug in the RouterInterface of "zend-expressive-router" or in the FastRouteRouter of this repo?
(Same "error" (?) is in the "zend-expressive-zendrouter").
Originally posted by @MatthiasKuehneEllerhold at zendframework/zend-expressive-fastroute#60
The text was updated successfully, but these errors were encountered: