Skip to content

Commit b1dd522

Browse files
phpstan
1 parent 87aedac commit b1dd522

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Controller/ElasticsearchNodeController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use Symfony\Component\HttpFoundation\Response;
1515
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
1616
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
17-
use Symfony\Component\Form\Form;
17+
use Symfony\Component\Form\FormInterface;
1818

1919
/**
2020
* @Route("/admin")
@@ -28,7 +28,7 @@ public function __construct(ElasticsearchNodeManager $elasticsearchNodeManager)
2828
$this->elasticsearchNodeManager = $elasticsearchNodeManager;
2929
}
3030

31-
private function filter(array $nodes, Form $form): array
31+
private function filter(array $nodes, FormInterface $form): array
3232
{
3333
return $this->elasticsearchNodeManager->filter($nodes, [
3434
'master' => $form->get('master')->getData(),

src/Controller/ElasticsearchRemoteClusterController.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ public function index(Request $request): Response
3434
throw new AccessDeniedException();
3535
}
3636

37+
$remoteClusters = [];
38+
3739
$masterNode = $this->callManager->getMasterNode();
3840

3941
$node = $this->elasticsearchNodeManager->getByName($masterNode);

0 commit comments

Comments
 (0)