Skip to content

Commit 9f59167

Browse files
committed
Fix error message in Match constraint
1 parent 078bafd commit 9f59167

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/UnifiedSpecTests/Constraint/Matches.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ private function assertMatchesOperator(BSONDocument $operator, $actual, string $
256256
$constraint = IsBsonType::anyOf(...(array) $operator['$$type']);
257257

258258
if (! $constraint->evaluate($actual, '', true)) {
259-
self::failAt(sprintf('%s is not an expected BSON type: %s', $this->exporter()->shortenedExport($actual), implode(', ', $types)), $keyPath);
259+
self::failAt(sprintf('%s is not an expected BSON type: %s', $this->exporter()->shortenedExport($actual), implode(', ', (array) $operator['$$type'])), $keyPath);
260260
}
261261

262262
return;

0 commit comments

Comments
 (0)