Skip to content

Commit 5d3f918

Browse files
committed
Set the initial value of $slop to null and update CHANGELOG.md
1 parent f805aff commit 5d3f918

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Added
10+
- Implementation of SLOP parameter
11+
912
## [1.3.0]
1013

1114
### Added

src/Search.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ class Search implements Builder, Pipeable
109109
/** @var null|Highlight */
110110
private $highlight;
111111

112-
/** @var int */
113-
private $slop = 0;
112+
/** @var null|int */
113+
private $slop = null;
114114

115115
/** @var bool */
116116
private $inOrder = false;
@@ -165,7 +165,7 @@ public function reset(): Builder
165165
$this->returns = [];
166166
$this->summarize = null;
167167
$this->highlight = null;
168-
$this->slop = 0;
168+
$this->slop = null;
169169
$this->inOrder = false;
170170
$this->language = null;
171171
$this->expander = null;

0 commit comments

Comments
 (0)