Skip to content

Commit 901f6ab

Browse files
committed
BUGFIX: Fix signature mismatch in AbstractQueryBuilder
1 parent 27b9bba commit 901f6ab

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Classes/Command/NodeIndexCommandController.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<?php
2+
declare(strict_types=1);
3+
24
namespace Flowpack\SimpleSearch\ContentRepositoryAdaptor\Command;
35

46
use Flowpack\SimpleSearch\ContentRepositoryAdaptor\Indexer\NodeIndexer;
@@ -22,7 +24,6 @@
2224
*/
2325
class NodeIndexCommandController extends CommandController
2426
{
25-
2627
/**
2728
* @Flow\Inject
2829
* @var NodeIndexer

Classes/Indexer/NodeIndexer.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace Flowpack\SimpleSearch\ContentRepositoryAdaptor\Indexer;
45

Classes/Search/AbstractQueryBuilder.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ abstract public function getFindIdentifiersByNodeIdentifierQuery(string $nodeIde
106106
* @param string $nodeType the node type to filter for
107107
* @return QueryBuilderInterface
108108
*/
109-
public function nodeType($nodeType): QueryBuilderInterface
109+
public function nodeType(string $nodeType): QueryBuilderInterface
110110
{
111111
$this->getSimpleSearchQueryBuilder()->like('__typeAndSuperTypes', "#" . $nodeType . "#");
112112

@@ -120,7 +120,7 @@ public function nodeType($nodeType): QueryBuilderInterface
120120
* @param mixed $propertyValue
121121
* @return QueryBuilderInterface
122122
*/
123-
public function exactMatch($propertyName, $propertyValue): QueryBuilderInterface
123+
public function exactMatch(string $propertyName, $propertyValue): QueryBuilderInterface
124124
{
125125
if ($propertyValue instanceof NodeInterface) {
126126
$propertyValue = (string) $propertyValue->getNodeAggregateIdentifier();

0 commit comments

Comments
 (0)