Skip to content

Add PHP 8.5 and retain the complete TYPO3 support matrix - #7

Closed
N0S0I wants to merge 4 commits into
mainfrom
php85-compatibility
Closed

N0S0I wants to merge 4 commits into
mainfrom
php85-compatibility

Conversation

@N0S0I

@N0S0I N0S0I commented Oct 9, 2026

Copy link
Copy Markdown

Adds or verifies PHP 8.5 while retaining every previously supported PHP and TYPO3 release. Existing static, unit and functional jobs stay enabled, and platform requirements are checked without upper-bound overrides.

CI-only SVG sanitizer alias installs and tests the official security-fixed 1.0.0 release. TYPO3 11/12 matrices currently cannot resolve safe public core releases: an ELTS Composer source and authorized CI credentials are required. The requested existing TYPO3 support is retained; this PR remains a draft until the complete matrix passes.

Comment thread docs/php85-ci.md

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove file, is not needed. if we do not support ELTS versions.

Comment thread .ddev/config.yaml
# docroot: <relative_path> # Relative path to the directory containing index.php.

# php_version: "8.3" # PHP version to use, "5.6" through "8.5"
# php_version: "8.5" # PHP version to use, "5.6" through "8.5"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# php_version: "8.5" # PHP version to use, "5.6" through "8.5"
php_version: "8.5" # PHP version to use, "5.6" through "8.5"

Comment on lines +14 to +15
env:
COMPOSER_AUTH: ${{ secrets.TYPO3_ELTS_COMPOSER_AUTH }}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
env:
COMPOSER_AUTH: ${{ secrets.TYPO3_ELTS_COMPOSER_AUTH }}

@@ -11,18 +11,41 @@ jobs:
matrix:
php: [ '8.2', '8.3', '8.4', '8.5' ]
typo3: [ '12', '13' ]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
typo3: [ '12', '13' ]
typo3: [ '13' ]

Comment on lines +28 to +51
- name: Install the security-fixed SVG sanitizer in CI
run: |
alias=0.22.99
if [ "${{ matrix.typo3 }}" = "11" ]; then alias=0.18.99; fi
composer require "enshrined/svg-sanitize:1.0.0 as $alias" --dev --no-update --sort-packages --no-interaction
- name: Configure TYPO3 ELTS when an authorized test license is available
if: (matrix.typo3 == '11' || matrix.typo3 == '12') && vars.TYPO3_ELTS_REPOSITORY_URL != ''
env:
TYPO3_ELTS_REPOSITORY_URL: ${{ vars.TYPO3_ELTS_REPOSITORY_URL }}
run: composer config --global repositories.typo3-elts composer "$TYPO3_ELTS_REPOSITORY_URL"
- run: composer require typo3/minimal="^${{ matrix.typo3 }}" --sort-packages --no-scripts -W --dev
- run: composer install --no-interaction --no-progress
- run: bash tests/typo3-svg-sanitizer.sh
- name: Run all static checks
shell: bash
run: |
set -o pipefail
./vendor/bin/grumphp run --no-ansi 2>&1 | tee /tmp/php85-grumphp.log
- name: Report failed static checks
if: failure()
run: |
if [ -f /tmp/php85-grumphp.log ]; then
php -r '$s=file_get_contents("/tmp/php85-grumphp.log"); echo "::error::".str_replace(["%", "\r", "\n"], ["%25", "%0D", "%0A"], substr($s, -5000))."\n";'
fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- name: Install the security-fixed SVG sanitizer in CI
run: |
alias=0.22.99
if [ "${{ matrix.typo3 }}" = "11" ]; then alias=0.18.99; fi
composer require "enshrined/svg-sanitize:1.0.0 as $alias" --dev --no-update --sort-packages --no-interaction
- name: Configure TYPO3 ELTS when an authorized test license is available
if: (matrix.typo3 == '11' || matrix.typo3 == '12') && vars.TYPO3_ELTS_REPOSITORY_URL != ''
env:
TYPO3_ELTS_REPOSITORY_URL: ${{ vars.TYPO3_ELTS_REPOSITORY_URL }}
run: composer config --global repositories.typo3-elts composer "$TYPO3_ELTS_REPOSITORY_URL"
- run: composer require typo3/minimal="^${{ matrix.typo3 }}" --sort-packages --no-scripts -W --dev
- run: composer install --no-interaction --no-progress
- run: bash tests/typo3-svg-sanitizer.sh
- name: Run all static checks
shell: bash
run: |
set -o pipefail
./vendor/bin/grumphp run --no-ansi 2>&1 | tee /tmp/php85-grumphp.log
- name: Report failed static checks
if: failure()
run: |
if [ -f /tmp/php85-grumphp.log ]; then
php -r '$s=file_get_contents("/tmp/php85-grumphp.log"); echo "::error::".str_replace(["%", "\r", "\n"], ["%25", "%0D", "%0A"], substr($s, -5000))."\n";'
fi
- run: composer require typo3/minimal="^${{ matrix.typo3 }}" --dev --ignore-platform-req=php+
- run: composer install --no-interaction --no-progress --ignore-platform-req=php+
- run: ./vendor/bin/grumphp run --ansi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants