mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2025-03-15 08:43:50 +01:00

[!!!][TASK] Drop support for PHP < 8.1 ()

As this is not supported by current TYPO3 LTS versions.

Resolves: 
This commit is contained in:
Daniel Siepmann 2025-02-03 12:27:27 +01:00 committed by Eike Starkmann
parent 736312ce58
commit 70a76f7a76
15 changed files with 5 additions and 151 deletions

View file

@ -41,8 +41,6 @@ jobs:
fail-fast: false
matrix:
php-version:
- "7.4"
- "8.0"
- "8.1"
- "8.2"
- "8.3"
@ -159,18 +157,6 @@ jobs:
fail-fast: false
matrix:
include:
- typo3-version: "^11.5"
php-version: "7.4"
composer-dependencies: lowest
- typo3-version: "^11.5"
php-version: "7.4"
composer-dependencies: highest
- typo3-version: "^11.5"
php-version: "8.0"
composer-dependencies: lowest
- typo3-version: "^11.5"
php-version: "8.0"
composer-dependencies: highest
- typo3-version: "^11.5"
php-version: "8.1"
composer-dependencies: lowest
@ -266,18 +252,6 @@ jobs:
fail-fast: false
matrix:
include:
- typo3-version: "^11.5"
php-version: "7.4"
composer-dependencies: lowest
- typo3-version: "^11.5"
php-version: "7.4"
composer-dependencies: highest
- typo3-version: "^11.5"
php-version: "8.0"
composer-dependencies: lowest
- typo3-version: "^11.5"
php-version: "8.0"
composer-dependencies: highest
- typo3-version: "^11.5"
php-version: "8.1"
composer-dependencies: lowest

View file

@ -1,14 +0,0 @@
func-php7.4-v11-highest:
extends: .default
image: ghcr.io/typo3/core-testing-php74:latest
services:
- mariadb:10
stage: test
needs:
- build-composer-dependencies
- php-lint-php7.4
script:
- echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies
- composer ci:tests:functional

View file

@ -1,14 +0,0 @@
func-php7.4-v11-lowest:
extends: .default
image: ghcr.io/typo3/core-testing-php74:latest
services:
- mariadb:10
stage: test
needs:
- build-composer-dependencies
- php-lint-php7.4
script:
- echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- composer ci:tests:functional

View file

@ -1,14 +0,0 @@
func-php8.0-v11-highest:
extends: .default
image: ghcr.io/typo3/core-testing-php80:latest
services:
- mariadb:10
stage: test
needs:
- build-composer-dependencies
- php-lint-php8.0
script:
- echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies
- composer ci:tests:functional

View file

@ -1,14 +0,0 @@
func-php8.0-v11-lowest:
extends: .default
image: ghcr.io/typo3/core-testing-php80:latest
services:
- mariadb:10
stage: test
needs:
- build-composer-dependencies
- php-lint-php8.0
script:
- echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- composer ci:tests:functional

View file

@ -1,7 +0,0 @@
php-lint-php7.4:
extends: .composer-update
image: ghcr.io/typo3/core-testing-php74:latest
stage: lint
needs: [ ]
script:
- composer ci:php:lint

View file

@ -1,7 +0,0 @@
php-lint-php8.0:
extends: .composer-update
image: ghcr.io/typo3/core-testing-php80:latest
stage: lint
needs: [ ]
script:
- composer ci:php:lint

View file

@ -1,12 +0,0 @@
unit-php7.4-v11-highest:
extends: .default
image: ghcr.io/typo3/core-testing-php74:latest
stage: test
needs:
- build-composer-dependencies
- php-lint-php7.4
script:
- echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies
- composer ci:tests:unit

View file

@ -1,12 +0,0 @@
unit-php7.4-v11-lowest:
extends: .default
image: ghcr.io/typo3/core-testing-php74:latest
stage: test
needs:
- build-composer-dependencies
- php-lint-php7.4
script:
- echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- composer ci:tests:unit

View file

@ -1,12 +0,0 @@
unit-php8.0-v11-highest:
extends: .default
image: ghcr.io/typo3/core-testing-php80:latest
stage: test
needs:
- build-composer-dependencies
- php-lint-php8.0
script:
- echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies
- composer ci:tests:unit

View file

@ -1,12 +0,0 @@
unit-php8.0-v11-lowest:
extends: .default
image: ghcr.io/typo3/core-testing-php80:latest
stage: test
needs:
- build-composer-dependencies
- php-lint-php8.0
script:
- echo "Job ${CI_JOB_NAME}"
- composer require --no-ansi --no-interaction --no-progress --no-install typo3/cms-core:"^11.5"
- composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
- composer ci:tests:unit

View file

@ -229,10 +229,8 @@ Options:
- 11.5: use TYPO3 v11 with typo3/cms-composer-installers ^3
- 12.4: (default) use TYPO3 v12 with typo3/cms-composer-installers ^5
-p <7.4|8.0|8.1|8.2|8.3|8.4>
-p <8.1|8.2|8.3|8.4>
Specifies the PHP minor version to be used
- 7.4: use PHP 7.4
- 8.0: use PHP 8.0
- 8.1: use PHP 8.1
- 8.2: use PHP 8.2
- 8.3: (default) use PHP 8.3
@ -367,7 +365,7 @@ while getopts "a:b:s:d:i:p:e:t:xy:o:nhu" OPT; do
;;
p)
PHP_VERSION=${OPTARG}
if ! [[ ${PHP_VERSION} =~ ^(7.4|8.0|8.1|8.2|8.3|8.4)$ ]]; then
if ! [[ ${PHP_VERSION} =~ ^(8.1|8.2|8.3|8.4)$ ]]; then
INVALID_OPTIONS+=("-p ${OPTARG}")
fi
;;

View file

@ -39,7 +39,7 @@
"docs": "https://docs.typo3.org/p/ttn/tea/main/en-us/"
},
"require": {
"php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
"psr/http-message": "^1.0.1",
"typo3/cms-core": "^11.5.41 || ^12.4.26",
"typo3/cms-extbase": "^11.5.41 || ^12.4.26",

View file

@ -7,7 +7,7 @@ $EM_CONF[$_EXTKEY] = [
'category' => 'example',
'constraints' => [
'depends' => [
'php' => '7.4.0-8.3.99',
'php' => '8.1.0-8.3.99',
'typo3' => '11.5.41-12.4.99',
'extbase' => '11.5.41-12.4.99',
'fluid' => '11.5.41-12.4.99',

View file

@ -95,7 +95,7 @@ return RectorConfig::configure()
])
->withImportNames(true, true, false)
->withConfiguredRule(ExtEmConfRector::class, [
ExtEmConfRector::PHP_VERSION_CONSTRAINT => '7.4.0-8.3.99',
ExtEmConfRector::PHP_VERSION_CONSTRAINT => '8.1.0-8.3.99',
ExtEmConfRector::TYPO3_VERSION_CONSTRAINT => '11.5.41-12.4.99',
ExtEmConfRector::ADDITIONAL_VALUES_TO_BE_REMOVED => [],
])