Skip to content
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## 2.5.2 under development

- Bug #788: Fix `skipOnEmpty` default value in `Equal`, `GreaterThan`, `GreaterThanOrEqual`, `LessThan`, `LessThanOrEqual` and `NotEqual` rules from `false` to `null` (@vjik)
Comment thread
vjik marked this conversation as resolved.
Outdated
- Enh #787: Explicitly import classes, functions, and constants in "use" section (@mspirkov)

## 2.5.1 December 12, 2025
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/Equal.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function __construct(
?string $message = null,
string $type = CompareType::NUMBER,
bool $strict = false,
bool|callable|null $skipOnEmpty = false,
bool|callable|null $skipOnEmpty = null,
bool $skipOnError = false,
?Closure $when = null,
Comment thread
samdark marked this conversation as resolved.
) {
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/GreaterThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __construct(
string $incorrectDataSetTypeMessage = self::DEFAULT_INCORRECT_DATA_SET_TYPE_MESSAGE,
?string $message = null,
string $type = CompareType::NUMBER,
bool|callable|null $skipOnEmpty = false,
bool|callable|null $skipOnEmpty = null,
bool $skipOnError = false,
?Closure $when = null,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/GreaterThanOrEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function __construct(
string $incorrectDataSetTypeMessage = self::DEFAULT_INCORRECT_DATA_SET_TYPE_MESSAGE,
?string $message = null,
string $type = CompareType::NUMBER,
bool|callable|null $skipOnEmpty = false,
bool|callable|null $skipOnEmpty = null,
bool $skipOnError = false,
?Closure $when = null,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/LessThan.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __construct(
string $incorrectDataSetTypeMessage = self::DEFAULT_INCORRECT_DATA_SET_TYPE_MESSAGE,
?string $message = null,
string $type = CompareType::NUMBER,
bool|callable|null $skipOnEmpty = false,
bool|callable|null $skipOnEmpty = null,
bool $skipOnError = false,
?Closure $when = null,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/LessThanOrEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public function __construct(
string $incorrectDataSetTypeMessage = self::DEFAULT_INCORRECT_DATA_SET_TYPE_MESSAGE,
?string $message = null,
string $type = CompareType::NUMBER,
bool|callable|null $skipOnEmpty = false,
bool|callable|null $skipOnEmpty = null,
bool $skipOnError = false,
?Closure $when = null,
) {
Expand Down
2 changes: 1 addition & 1 deletion src/Rule/NotEqual.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function __construct(
?string $message = null,
string $type = CompareType::NUMBER,
bool $strict = false,
bool|callable|null $skipOnEmpty = false,
bool|callable|null $skipOnEmpty = null,
bool $skipOnError = false,
?Closure $when = null,
) {
Expand Down
Loading