diff --git a/UPGRADE-4.0.md b/UPGRADE-4.0.md index 68ecefb1b9..d543d6996a 100644 --- a/UPGRADE-4.0.md +++ b/UPGRADE-4.0.md @@ -70,4 +70,7 @@ The Twig filters that come with the bundle will no longer load a default templat The `sonata_admin` twig extension is now final. You may no longer extend it. ## SimplePager -Method `SimplePager::getResults` is always returning an array \ No newline at end of file +Method `SimplePager::getResults` is always returning an array + +## LockInterface +`LockInterface` extends from `ModelManagerInterface`. diff --git a/src/Model/LockInterface.php b/src/Model/LockInterface.php index 9641e61403..5ce55afb07 100644 --- a/src/Model/LockInterface.php +++ b/src/Model/LockInterface.php @@ -18,7 +18,7 @@ /** * @author Emmanuel Vella */ -interface LockInterface +interface LockInterface extends ModelManagerInterface { /** * @param object $object diff --git a/tests/Admin/Extension/LockExtensionTest.php b/tests/Admin/Extension/LockExtensionTest.php index f3a0bf4a76..f85dd29adb 100644 --- a/tests/Admin/Extension/LockExtensionTest.php +++ b/tests/Admin/Extension/LockExtensionTest.php @@ -215,7 +215,7 @@ private function configureFormMapper(): FormMapper private function configureAdmin( ?string $uniqid = null, ?Request $request = null, - $modelManager = null + ModelManagerInterface $modelManager = null ): void { $this->admin->getUniqid()->willReturn($uniqid); $this->admin->getRequest()->willReturn($request);