From 5b102dfdceea9ce32ad3eee90e6c169dc8fcdee7 Mon Sep 17 00:00:00 2001 From: "lukas.novotny" Date: Mon, 6 Jun 2022 16:41:42 +0200 Subject: [PATCH 1/2] composer.json - kdyby/console update from ^2.7.1 to ^2.7.1 || ^4.0.0 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 88803804..baa08f11 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "php": "^7.1", "doctrine/orm": "~2.7", "doctrine/dbal": "~2.9", - "kdyby/console": "^2.7.1", + "kdyby/console": "^2.7.1 || ^4.0.0", "kdyby/annotations": "^3.0", "kdyby/doctrine-cache": "^3.0", "kdyby/strict-objects": "^2.0", From c3792f96fabd190083cfba0c2afff03a23034873 Mon Sep 17 00:00:00 2001 From: "lukas.novotny" Date: Wed, 6 Sep 2023 14:42:35 +0200 Subject: [PATCH 2/2] fix deprecated nette/di 3.1 --- src/Kdyby/Doctrine/DI/IRepositoryFactory.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/Kdyby/Doctrine/DI/IRepositoryFactory.php b/src/Kdyby/Doctrine/DI/IRepositoryFactory.php index b0daaa1d..3474656f 100644 --- a/src/Kdyby/Doctrine/DI/IRepositoryFactory.php +++ b/src/Kdyby/Doctrine/DI/IRepositoryFactory.php @@ -22,12 +22,5 @@ */ interface IRepositoryFactory { - - /** - * @param ORM\EntityManagerInterface $entityManager - * @param ORM\Mapping\ClassMetadata $classMetadata - * @return EntityRepository - */ - public function create(ORM\EntityManagerInterface $entityManager, ORM\Mapping\ClassMetadata $classMetadata); - + public function create(ORM\EntityManagerInterface $em, ORM\Mapping\ClassMetadata $class): EntityRepository; }