diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-07-28 17:33:01 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-07-28 17:33:01 +0200 |
commit | 00da834832253e534834c68a6294dbe411e2218f (patch) | |
tree | 1af10899f497964d3b5fcb8e298a52210ce54bdb /src/Search | |
parent | 6bf74216738b77d39b1bf6308c8ffff9d11f5f72 (diff) | |
download | micropoly-00da834832253e534834c68a6294dbe411e2218f.tar.gz micropoly-00da834832253e534834c68a6294dbe411e2218f.tar.bz2 micropoly-00da834832253e534834c68a6294dbe411e2218f.zip |
Diffstat (limited to 'src/Search')
-rw-r--r-- | src/Search/FTSLogicOp.php | 4 |
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 +} |