Skip to content

Commit

Permalink
Fix test on PHP 8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sanmai committed Sep 2, 2022
1 parent 9462394 commit 4894b08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ErrorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function testUnpackNonIterable(): void
$this->expectException(TypeError::class);
// Older PHPUnit on 7.1 does not have this method
if (is_callable([$this, 'expectExceptionMessageMatches'])) {
$this->expectExceptionMessageMatches('/must .* iterable/');
$this->expectExceptionMessageMatches('/must .* (iterable|Traversable)/');
}
$pipeline->toArray();
}
Expand Down

0 comments on commit 4894b08

Please sign in to comment.