Please sign in to comment.
switch to array_replace instead of array_merge
we don't need the logic to merge numeric keys, as we don't have them. I could also improve the genrated code by PhpMatcherDumper a little by saving a function call.
- Loading branch information...
Showing with 26 additions and 32 deletions.
- +3 −3 src/Symfony/Component/Routing/Loader/AnnotationClassLoader.php
- +9 −15 src/Symfony/Component/Routing/Matcher/Dumper/PhpMatcherDumper.php
- +2 −2 src/Symfony/Component/Routing/Matcher/UrlMatcher.php
- +6 −6 src/Symfony/Component/Routing/Tests/Fixtures/dumper/url_matcher1.php
- +6 −6 src/Symfony/Component/Routing/Tests/Fixtures/dumper/url_matcher2.php