Skip to content

Commit

Permalink
Merge pull request #185 from mfn/mfn-phpunit-11
Browse files Browse the repository at this point in the history
Allow phpunit 11
  • Loading branch information
freekmurze committed Feb 3, 2024
2 parents c549e1b + 3138ed0 commit 7e6960c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"ext-json": "*",
"ext-libxml": "*",
"composer-runtime-api": "^2.0",
"phpunit/phpunit": "^10.0",
"phpunit/phpunit": "^10.0|^11.0",
"symfony/property-access": "^5.2|^6.2|^7.0",
"symfony/serializer": "^5.2|^6.2|^7.0",
"symfony/yaml": "^5.2|^6.2|^7.0"
Expand Down
2 changes: 1 addition & 1 deletion src/MatchesSnapshots.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public function markTestIncompleteIfSnapshotsHaveChanged()
$this->markTestIncomplete($formattedMessages);
}

public function assertMatchesSnapshot($actual, Driver $driver = null): void
public function assertMatchesSnapshot($actual, ?Driver $driver = null): void
{
if (! is_null($driver)) {
$this->doSnapshotAssertion($actual, $driver);
Expand Down

0 comments on commit 7e6960c

Please sign in to comment.