We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 012ff1b commit f00b656Copy full SHA for f00b656
src/Query/Match.php
@@ -99,7 +99,7 @@ public function toArray() : array
99
$array['match'][$this->field]['operator'] = $this->operator;
100
}
101
102
- if ($this->fuzziness->__toString()) {
+ if ($this->fuzziness && $this->fuzziness->__toString()) {
103
$array['match'][$this->field]['fuzziness'] = $this->fuzziness->__toString();
104
105
0 commit comments