aboutsummaryrefslogtreecommitdiff
path: root/src/Search
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-07-28 17:33:01 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-07-28 17:33:01 +0200
commit00da834832253e534834c68a6294dbe411e2218f (patch)
tree1af10899f497964d3b5fcb8e298a52210ce54bdb /src/Search
parent6bf74216738b77d39b1bf6308c8ffff9d11f5f72 (diff)
downloadmicropoly-00da834832253e534834c68a6294dbe411e2218f.tar.gz
micropoly-00da834832253e534834c68a6294dbe411e2218f.tar.bz2
micropoly-00da834832253e534834c68a6294dbe411e2218f.zip
Fix failing assertHEADmaster
Diffstat (limited to 'src/Search')
-rw-r--r--src/Search/FTSLogicOp.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Search/FTSLogicOp.php b/src/Search/FTSLogicOp.php
index 452f63b..5b8b738 100644
--- a/src/Search/FTSLogicOp.php
+++ b/src/Search/FTSLogicOp.php
@@ -33,8 +33,8 @@ class FTSLogicOp extends AbstractFTSExpr
protected function fts4Query(): string
{
+ assert(isset(self::FTSOPS[$this->op]));
$ftsop = self::FTSOPS[$this->op];
- assert($ftsop);
return "({$this->a->fts4Query()} {$ftsop} {$this->b->fts4Query()})";
}
@@ -43,4 +43,4 @@ class FTSLogicOp extends AbstractFTSExpr
{
return "({$this->a->toString()} FTS-{$this->op} {$this->b->toString()})";
}
-} \ No newline at end of file
+}