Skip to content

Commit 1b4e9cb

Browse files
committed
Return null when expected
1 parent 2393a13 commit 1b4e9cb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

tests/SpecTests/DocumentsMatchConstraint.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ public function evaluate($other, string $description = '', bool $returnResult =
9797
if (! $success) {
9898
$this->fail($other, $description, $this->lastFailure);
9999
}
100+
101+
return null;
100102
}
101103

102104
/** @param string|BSONArray[] $expectedType */

tests/UnifiedSpecTests/Constraint/Matches.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ public function evaluate($other, $description = '', $returnResult = false): ?boo
101101
if (! $success) {
102102
$this->fail($other, $description, $this->lastFailure);
103103
}
104+
105+
return null;
104106
}
105107

106108
private function assertEquals($expected, $actual, string $keyPath): void

0 commit comments

Comments
 (0)