From 237699aed6bc817db7df6e05a25a6e443b064e70 Mon Sep 17 00:00:00 2001 From: Christoph Lehmann Date: Thu, 14 Mar 2024 16:22:10 +0100 Subject: [PATCH 1/2] Allow PHP 8.1 PHP 8.1 is basically usable with TYPO3 v11/v12 and the platform requirement when kickstarting a new composer project with v12. --- .github/workflows/tasks.yml | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tasks.yml b/.github/workflows/tasks.yml index 13270cd..bdfd1b5 100644 --- a/.github/workflows/tasks.yml +++ b/.github/workflows/tasks.yml @@ -9,7 +9,7 @@ jobs: strategy: fail-fast: false matrix: - php: [ '8.2', '8.3' ] + php: [ '8.1', '8.2', '8.3' ] typo3: [ '11', '12' ] steps: - name: Setup PHP with PECL extension diff --git a/composer.json b/composer.json index 8ef756d..965018e 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ ], "type": "typo3-cms-extension", "require": { - "php": "~8.2.0 || ~8.3.0", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "typo3/cms-core": "^11.5 || ^12.0", "typo3/cms-frontend": "^11.5 || ^12.0" }, From ab801c3c8c582d84abf671cd06c217f204697894 Mon Sep 17 00:00:00 2001 From: Matthias Vogel Date: Tue, 19 Mar 2024 13:23:18 +0100 Subject: [PATCH 2/2] =?UTF-8?q?=E2=AC=87=EF=B8=8F=20make=20RelationProcess?= =?UTF-8?q?or.php=20php8.1=20compatible?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Classes/DataProcessing/RelationProcessor.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/DataProcessing/RelationProcessor.php b/Classes/DataProcessing/RelationProcessor.php index b4664d9..0021af3 100644 --- a/Classes/DataProcessing/RelationProcessor.php +++ b/Classes/DataProcessing/RelationProcessor.php @@ -13,11 +13,11 @@ use TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer; use TYPO3\CMS\Frontend\ContentObject\DataProcessorInterface; -final readonly class RelationProcessor implements DataProcessorInterface +final class RelationProcessor implements DataProcessorInterface { public function __construct( - private ConnectionPool $connectionPool, - private ContentDataProcessor $contentDataProcessor + private readonly ConnectionPool $connectionPool, + private readonly ContentDataProcessor $contentDataProcessor ) { }