Skip to content

Commit f00b656

Browse files
committed
PHPStan to the rescue
1 parent 012ff1b commit f00b656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Query/Match.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function toArray() : array
9999
$array['match'][$this->field]['operator'] = $this->operator;
100100
}
101101

102-
if ($this->fuzziness->__toString()) {
102+
if ($this->fuzziness && $this->fuzziness->__toString()) {
103103
$array['match'][$this->field]['fuzziness'] = $this->fuzziness->__toString();
104104
}
105105

0 commit comments

Comments
 (0)