diff --git a/composer.json b/composer.json index afec7b92b27..7fac3cd74e9 100644 --- a/composer.json +++ b/composer.json @@ -25,7 +25,7 @@ "doctrine/dbal": "^2.10.0", "doctrine/event-manager": "^1.1", "doctrine/instantiator": "^1.3", - "doctrine/persistence": "^1.2", + "doctrine/persistence": "~1.2.0", "ocramius/package-versions": "^1.4", "symfony/console": "^3.0|^4.0|^5.0" }, diff --git a/tests/Doctrine/Tests/ORM/Decorator/EntityManagerDecoratorTest.php b/tests/Doctrine/Tests/ORM/Decorator/EntityManagerDecoratorTest.php index 4fc7ac066ba..e38c56973bb 100644 --- a/tests/Doctrine/Tests/ORM/Decorator/EntityManagerDecoratorTest.php +++ b/tests/Doctrine/Tests/ORM/Decorator/EntityManagerDecoratorTest.php @@ -94,7 +94,7 @@ public function testAllMethodCallsAreDelegatedToTheWrappedInstance($method, arra $this->assertSame($return, $decorator->$method(...$parameters)); - if (in_array($method, ['copy', 'merge', 'detach', 'getHydrator', 'getCache'], true)) { + if (in_array($method, ['copy', 'merge', 'detach', 'getHydrator'], true)) { $this->assertHasDeprecationMessages(); return; }