Skip to content

Commit

Permalink
BUGFIX: Fix signature mismatch in AbstractQueryBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
kdambekalns committed May 31, 2021
1 parent 27b9bba commit 901f6ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Classes/Command/NodeIndexCommandController.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);

namespace Flowpack\SimpleSearch\ContentRepositoryAdaptor\Command;

use Flowpack\SimpleSearch\ContentRepositoryAdaptor\Indexer\NodeIndexer;
Expand All @@ -22,7 +24,6 @@
*/
class NodeIndexCommandController extends CommandController
{

/**
* @Flow\Inject
* @var NodeIndexer
Expand Down
1 change: 1 addition & 0 deletions Classes/Indexer/NodeIndexer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);

namespace Flowpack\SimpleSearch\ContentRepositoryAdaptor\Indexer;

Expand Down
4 changes: 2 additions & 2 deletions Classes/Search/AbstractQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ abstract public function getFindIdentifiersByNodeIdentifierQuery(string $nodeIde
* @param string $nodeType the node type to filter for
* @return QueryBuilderInterface
*/
public function nodeType($nodeType): QueryBuilderInterface
public function nodeType(string $nodeType): QueryBuilderInterface
{
$this->getSimpleSearchQueryBuilder()->like('__typeAndSuperTypes', "#" . $nodeType . "#");

Expand All @@ -120,7 +120,7 @@ public function nodeType($nodeType): QueryBuilderInterface
* @param mixed $propertyValue
* @return QueryBuilderInterface
*/
public function exactMatch($propertyName, $propertyValue): QueryBuilderInterface
public function exactMatch(string $propertyName, $propertyValue): QueryBuilderInterface
{
if ($propertyValue instanceof NodeInterface) {
$propertyValue = (string) $propertyValue->getNodeAggregateIdentifier();
Expand Down

0 comments on commit 901f6ab

Please sign in to comment.