Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixes RequestDataCollector bug, visible when used on Drupal8
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 ===
- Loading branch information