From dfbc47ebb9dc9a89388e1fc98ab35c6b647f3e00 Mon Sep 17 00:00:00 2001 From: camklcbr Date: Thu, 20 Jul 2017 11:46:52 +0200 Subject: [PATCH 1/2] Add return type for php 7.1 --- src/EntityManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EntityManager.php b/src/EntityManager.php index ac9cbbd..9a78ac7 100644 --- a/src/EntityManager.php +++ b/src/EntityManager.php @@ -247,7 +247,7 @@ public function remove($entityName \$entity) * * @return $entityName|null */ - public function findUniqueBy(array \$criteria) + public function findUniqueBy(array \$criteria) : ?$entityName { \$result = \$this->findBy(\$criteria); From 41330f5167805ff673e946445174524e980fd58f Mon Sep 17 00:00:00 2001 From: camklcbr Date: Thu, 20 Jul 2017 11:48:09 +0200 Subject: [PATCH 2/2] Update dependencies in composer for php 7.1 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index e5a377a..bbba406 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ } ], "require" : { - "php" : ">=7.0", + "php" : ">=7.1", "doctrine/orm" : "~2.4", "mouf/database.dao-interface" : "2.*", "mouf/utils.common.doctrine-annotations-wrapper" : "~1.2",