Skip to content

Commit 87208ce

Browse files
committed
Fix deprecation error for constructor.
1 parent ee07f01 commit 87208ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controller/QuantNodeViewController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ class QuantNodeViewController extends NodeViewController {
5353
* @param \Drupal\Core\Session\AccountSwitcherInterface $account_switcher
5454
* The account switcher interface.
5555
*/
56-
public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, ?AccountInterface $current_user = NULL, ?EntityRepositoryInterface $entity_repository = NULL, RequestStack $request_stack, CurrentRouteMatch $route_match, AccountSwitcherInterface $account_switcher) {
56+
public function __construct(EntityTypeManagerInterface $entity_type_manager, RendererInterface $renderer, AccountInterface $current_user, EntityRepositoryInterface $entity_repository, RequestStack $request_stack, CurrentRouteMatch $route_match, AccountSwitcherInterface $account_switcher) {
57+
5758
parent::__construct($entity_type_manager, $renderer, $current_user, $entity_repository);
5859

5960
$this->accountSwitcher = $account_switcher;

0 commit comments

Comments
 (0)