Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Nicer error message for bad routes #3344

Closed
lmcd opened this Issue · 0 comments

2 participants

@lmcd

Instead of this:

Warning: preg_match(): Compilation failed: two named subpatterns have the same name at offset 57 in /Users/pub/docroot/.../app/cache/dev/appdevUrlMatcher.php line 167

Use this:

Route 'my_route' has two placeholders with the same name

Could this be caught in the PHP route dumper?

@fabpot fabpot closed this issue from a commit
@fabpot fabpot [Routing] added a proper exception when a route pattern references th…
…e same variable more than once (closes #3344)
ec7fb0b
@fabpot fabpot closed this in ec7fb0b
@realmfoo realmfoo referenced this issue from a commit
@fabpot fabpot [Routing] added a proper exception when a route pattern references th…
…e same variable more than once (closes #3344)
b6ccd33
@mmucklo mmucklo referenced this issue from a commit
@fabpot fabpot [Routing] added a proper exception when a route pattern references th…
…e same variable more than once (closes #3344)
25c921a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.