whiteoctober/WhiteOctoberPagerfantaBundle — Issue #32: Bug when _route_params not an array 
Author: keymaster
Created: 2011-12-11 14:01:58+00:00
State: open

In PagerFantaExtension.php, line 73, the code says:

$options['routeParams'] = array_merge($request->query->all(), $request->attributes->get('_route_params'));

This will generate an exception when the second parameter to the array_merge() is not an array.

Replace with:

if (is_array($request->attributes->get('_route_params'))){
$options['routeParams'] = array_merge($request->query->all(), $tempRouteParams);
}else{
$options['routeParams'] = $request->query->all();
}