Skip to content
Snippets Groups Projects

Issue #3449027: TypeError in UserVisitsSubscriber due to RequestStack Type Mismatch in Drupal >= 10.2

Open Issue #3449027: TypeError in UserVisitsSubscriber due to RequestStack Type Mismatch in Drupal >= 10.2
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -3,7 +3,7 @@
namespace Drupal\user_visits\EventSubscriber;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Http\RequestStack;
use Symfony\Component\HttpFoundation\RequestStack;
use Drupal\Core\Path\CurrentPathStack;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Session\AccountInterface;
@@ -48,7 +48,7 @@ class UserVisitsSubscriber implements EventSubscriberInterface {
/**
* The request stack.
*
* @var \Drupal\Core\Http\RequestStack
* @var \Symfony\Component\HttpFoundation\RequestStack
*/
private $requestStack;
@@ -63,7 +63,7 @@ class UserVisitsSubscriber implements EventSubscriberInterface {
* The current route match.
* @param \Drupal\Core\Path\CurrentPathStack $current_path
* The current path.
* @param \Drupal\Core\Http\RequestStack $request_stack
* @param \Symfony\Component\HttpFoundation\RequestStack $request_stack
* The request stack.
*/
public function __construct(
Loading