Skip to content

symfony/routing: "Notice: Undefined offset: 1" #31158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AbdelilahJbr opened this issue Apr 18, 2019 · 1 comment
Closed

symfony/routing: "Notice: Undefined offset: 1" #31158

AbdelilahJbr opened this issue Apr 18, 2019 · 1 comment

Comments

@AbdelilahJbr
Copy link

AbdelilahJbr commented Apr 18, 2019

Symfony version(s) affected: 4.2.7

Description
When I updated to 4.2.7, I can't access to my routes if I add a '/', it gives me a Notice: Undefined offset: 1.
I cleared the cache using : bin/console cache:clear, doesn't work
then I deleted the folder var/cache : doesn't work

How to reproduce
If I access to "/api/collaborators" it works but accessing to "/api/collaborators/" gives the error

Additional context
image

@nicolas-grekas
Copy link
Member

Thanks for the report, fixed in #31167

nicolas-grekas added a commit that referenced this issue Apr 18, 2019
…s-grekas)

This PR was merged into the 4.2 branch.

Discussion
----------

[Routing] fix matching trailing vars with defaults

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #31158
| License       | MIT
| Doc PR        | -

Commits
-------

177dfbc [Routing] fix matching trailing vars with defaults
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants