Skip to content

Commit 7e6960c

Browse files
authored
Merge pull request #185 from mfn/mfn-phpunit-11
Allow phpunit 11
2 parents c549e1b + 3138ed0 commit 7e6960c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"ext-json": "*",
2626
"ext-libxml": "*",
2727
"composer-runtime-api": "^2.0",
28-
"phpunit/phpunit": "^10.0",
28+
"phpunit/phpunit": "^10.0|^11.0",
2929
"symfony/property-access": "^5.2|^6.2|^7.0",
3030
"symfony/serializer": "^5.2|^6.2|^7.0",
3131
"symfony/yaml": "^5.2|^6.2|^7.0"

src/MatchesSnapshots.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function markTestIncompleteIfSnapshotsHaveChanged()
4949
$this->markTestIncomplete($formattedMessages);
5050
}
5151

52-
public function assertMatchesSnapshot($actual, Driver $driver = null): void
52+
public function assertMatchesSnapshot($actual, ?Driver $driver = null): void
5353
{
5454
if (! is_null($driver)) {
5555
$this->doSnapshotAssertion($actual, $driver);

0 commit comments

Comments
 (0)