From 00da834832253e534834c68a6294dbe411e2218f Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Tue, 28 Jul 2020 17:33:01 +0200 Subject: Fix failing assert --- src/Search/FTSLogicOp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 +} -- cgit v1.2.3-70-g09d2