From 83bc3238b013a75cd0873bb8d0825a893529ddae Mon Sep 17 00:00:00 2001 From: Lucas dos Santos Abreu Date: Thu, 20 May 2021 11:26:05 -0300 Subject: [PATCH] (fix): copy and merge are deprecated --- stubs/EntityManager.stub | 2 ++ stubs/EntityManagerInterface.stub | 1 + 2 files changed, 3 insertions(+) diff --git a/stubs/EntityManager.stub b/stubs/EntityManager.stub index dad0e99d..4b88a295 100644 --- a/stubs/EntityManager.stub +++ b/stubs/EntityManager.stub @@ -19,6 +19,7 @@ class EntityManager implements EntityManagerInterface * @template T * @phpstan-param T $entity * @phpstan-return T + * @deprecated 2.7 This method is being removed from the ORM and won't have any replacement */ public function merge($entity); @@ -51,6 +52,7 @@ class EntityManager implements EntityManagerInterface * @phpstan-param T $entity * @phpstan-param bool $deep * @phpstan-return T + * @deprecated 2.7 This method is being removed from the ORM and won't have any replacement */ public function copy($entity, $deep = false); diff --git a/stubs/EntityManagerInterface.stub b/stubs/EntityManagerInterface.stub index 33ef1ea0..e59028a7 100644 --- a/stubs/EntityManagerInterface.stub +++ b/stubs/EntityManagerInterface.stub @@ -52,6 +52,7 @@ interface EntityManagerInterface extends ObjectManager * @phpstan-param T $entity * @phpstan-param bool $deep * @phpstan-return T + * @deprecated 2.7 This method is being removed from the ORM and won't have any replacement */ public function copy($entity, $deep = false);