Skip to content

Commit

Permalink
Fix Version
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Oct 9, 2024
1 parent f781f60 commit c9b5a43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
"psr/cache": "^1.0 || ^2.0 || ^3.0",
"symfony/console": "^5.4 || ^6.0 || ^7.0",
"symfony/deprecation-contracts": "^2.2 || ^3.0",
"symfony/event-dispatcher": "^7.1",
"symfony/var-dumper": "^5.4 || ^6.0 || ^7.0"
},
"require-dev": {
Expand All @@ -49,7 +48,7 @@
"phpunit/phpunit": "^10.4",
"squizlabs/php_codesniffer": "^3.5",
"symfony/cache": "^5.4 || ^6.0 || ^7.0",
"symfony/event-dispatcher-contracts": "^3.5",
"symfony/event-dispatcher-contracts": "^2.0 || ^3.0",
"vimeo/psalm": "~5.24.0"
},
"conflict": {
Expand Down
5 changes: 3 additions & 2 deletions tests/Doctrine/ODM/MongoDB/Tests/DocumentManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
use Documents\Tournament\ParticipantSolo;
use Documents\User;
use InvalidArgumentException;
use LogicException;
use MongoDB\BSON\ObjectId;
use MongoDB\Client;
use PHPUnit\Framework\Attributes\DataProvider;
Expand Down Expand Up @@ -281,10 +282,10 @@ public function testCreateWithEventDispatcher(): void
$client = new Client(self::getUri());

$eventDispatcher = $this->createMock(EventDispatcherInterface::class);
$dm = DocumentManager::create($client, $config, $eventDispatcher);
$dm = DocumentManager::create($client, $config, $eventDispatcher);
self::assertSame($eventDispatcher, $dm->getEventDispatcher());

self::expectException(\LogicException::class);
self::expectException(LogicException::class);
self::expectExceptionMessage('Use getEventDispatcher() instead of getEventManager()');
$dm->getEventManager();
}
Expand Down

0 comments on commit c9b5a43

Please sign in to comment.