From 0ceacb71320dd79362c0d01b9c78397ca3f2a4e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1niel=20K=C3=B3nya?= Date: Wed, 10 Nov 2021 13:51:39 +0100 Subject: [PATCH] upgrade php to 8.0 --- Entity/LibraryRepository.php | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Entity/LibraryRepository.php b/Entity/LibraryRepository.php index 35bf65b..2c70f9f 100644 --- a/Entity/LibraryRepository.php +++ b/Entity/LibraryRepository.php @@ -76,7 +76,7 @@ public function findLatestLibraryVersions() EOT; $em = $this->getEntityManager(); $stmt = $em->getConnection()->prepare($sql); - $stmt->execute(); + $stmt = $stmt->execute(); $libraryVersions = $stmt->fetchAll(); foreach ($libraryVersions as &$libraryVersion) { $libraryVersion = (object)$libraryVersion; diff --git a/composer.json b/composer.json index 2a35cb9..1c38418 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ } ], "require": { - "php": "^7.2.5", + "php": "^7.2.5 || ^8.0", "doctrine/orm": "^2.7", "guzzlehttp/guzzle": "^6.5", "h5p/h5p-core": "^1.24",