Skip to content

[HttpKernel] _route_params can be empty #20667

@MatTheCat

Description

@MatTheCat

Looking at the web profiler in Silex I saw

Notice: Undefined offset: 1 in /srv/http/tronatic-studio.com/vendor/symfony/http-kernel/DataCollector/RequestDataCollector.php on line 280

Warning: Invalid argument supplied for foreach() in /srv/http/tronatic-studio.com/vendor/symfony/http-kernel/DataCollector/RequestDataCollector.php on line 280

under Route Parameters.

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/DataCollector/RequestDataCollector.php#L280

The matching route didn't have any parameter.

Don't know why 2e404d0 introduced this.

Dumping $data->getRawData() shows

array(1) { [0]=> array(1) { [0]=> array(0) { } } } 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions