From 52ab7a2004cb6ae635c1349e7962e25cc4ecb758 Mon Sep 17 00:00:00 2001 From: Urs Braem Date: Sat, 23 Jul 2022 20:45:19 +0200 Subject: [PATCH 1/3] Allow PHP 8 and specify current version --- composer.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3fd382e..59b515d 100644 --- a/composer.json +++ b/composer.json @@ -14,10 +14,11 @@ "type": "typo3-cms-extension", "license": "GPL-2.0-or-later", "require": { - "php": "^7.2", + "php": "^7.4 || ^8.0", "typo3/cms-core": "^10.4 || ^11.5", "ext-json": "*" }, + "version": "7.0", "autoload": { "psr-4": { "In2code\\Instagram\\": "Classes/" From 3c100198061d5a1bea1c56d1686534118c111d95 Mon Sep 17 00:00:00 2001 From: Urs Braem Date: Sat, 23 Jul 2022 20:49:10 +0200 Subject: [PATCH 2/3] Raise supported PHP version --- ext_emconf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext_emconf.php b/ext_emconf.php index 78d49e5..0cb08c3 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -11,7 +11,7 @@ 'constraints' => [ 'depends' => [ 'typo3' => '10.4.0-11.5.99', - 'php' => '7.2.0-7.99.99' + 'php' => '7.2.0-8.0.99' ], 'conflicts' => [], 'suggests' => [], From 05b73b3a86b283ac7e372229277c070ae7a0a2fa Mon Sep 17 00:00:00 2001 From: Urs Braem Date: Sat, 23 Jul 2022 20:49:55 +0200 Subject: [PATCH 3/3] Avoid undefined array key warning in PHP 8 --- ext_localconf.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext_localconf.php b/ext_localconf.php index 30985d5..ec0c6a9 100644 --- a/ext_localconf.php +++ b/ext_localconf.php @@ -20,7 +20,7 @@ function () { /** * Caching framework */ - if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['instagram'])) { + if (!is_array(($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['instagram'] ?? 0))) { $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['instagram'] = []; }