Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged branch fabriceb/master (PR symfony#9060)
This PR was submitted for the master branch but it was merged into the 2.2 branch instead (closes symfony#9060). Discussion ---------- [HttpKernel] fixes RequestDataCollector bug, visible on Drupal8 | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | In Drupal8 ```$request->attributes->all()``` returns an array with a 0 key whose value is the ```Drupal\user\Entity\User``` ```php array( 0 => Drupal\user\Entity\User, ... ) ``` ```('_route' == $key && is_object($value))``` is therefore true which provokes an exception: ```php FatalErrorException: Error: Call to undefined method Drupal\user\Entity\User::getPath() in [...]/RequestDataCollector.php line 54 ``` This patch corrects this with a simple replacement of == by === Commits ------- ba85279 [HttpKernel] fixes RequestDataCollector bug, visible when used on Drupal8
- Loading branch information