Skip to content

Commit 6cb28dd

Browse files
committed
Drop compatibility with TYPO3 v12
1 parent 2fab8a5 commit 6cb28dd

11 files changed

Lines changed: 27 additions & 43 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,12 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
include:
23-
- php-versions: 8.1
24-
typo3-versions: ^12
25-
- php-versions: 8.2
26-
typo3-versions: ^12
2723
- php-versions: 8.2
2824
typo3-versions: ^13
29-
- php-versions: 8.3
30-
typo3-versions: ^12
3125
- php-versions: 8.3
3226
typo3-versions: ^13
33-
- php-versions: 8.4
34-
typo3-versions: ^12
3527
- php-versions: 8.4
3628
typo3-versions: ^13
37-
- php-versions: 8.5
38-
typo3-versions: ^12
3929
- php-versions: 8.5
4030
typo3-versions: ^13
4131
steps:
@@ -69,7 +59,7 @@ jobs:
6959
- name: Setup PHP version
7060
uses: shivammathur/setup-php@v2
7161
with:
72-
php-version: 8.1
62+
php-version: 8.2
7363
coverage: xdebug
7464
extensions: mbstring
7565
- name: Get Composer Cache Directory

.github/workflows/yaml.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Setup PHP version
2323
uses: shivammathur/setup-php@v2
2424
with:
25-
php-version: 8.1
25+
php-version: 8.2
2626
extensions: mbstring
2727
- name: Get Composer Cache Directory
2828
id: composer-cache

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
### Removed
10+
- Compatibility with TYPO3 v12
11+
912
## [4.2.1] - 2025-10-17
1013

1114
### Fixed

Classes/EventListener/CopyToClipboard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
/**
1919
* @internal
2020
*/
21-
final class CopyToClipboard
21+
final readonly class CopyToClipboard
2222
{
2323
public function __construct(
24-
private readonly LanguageServiceFactory $languageServiceFactory,
24+
private LanguageServiceFactory $languageServiceFactory,
2525
) {}
2626

2727
public function __invoke(EnrichCodeSnippetEvent $event): void

Configuration/TCA/Overrides/tt_content.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
use Brotkrueml\CodeHighlight\Extension;
1111
use Brotkrueml\CodeHighlight\Preview\ContentPreviewRenderer;
12-
use TYPO3\CMS\Core\Information\Typo3Version;
1312
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
1413

1514
defined('TYPO3') || die();
@@ -41,6 +40,7 @@
4140
'bodytext' => [
4241
'label' => Extension::LANGUAGE_PATH_CONTENT_ELEMENT . ':codeSnippet',
4342
'config' => [
43+
'renderType' => 'codeEditor',
4444
'enableTabulator' => true,
4545
'fixedFont' => true,
4646
'wrap' => 'off',
@@ -69,14 +69,5 @@
6969
',
7070
];
7171

72-
if (ExtensionManagementUtility::isLoaded('t3editor')) {
73-
// @todo Remove when compatibility with TYPO3 v12 is dropped
74-
$GLOBALS['TCA']['tt_content']['types'][$contentType]['columnsOverrides']['bodytext']['config']['renderType'] = 't3editor';
75-
}
76-
if ((new Typo3Version())->getMajorVersion() >= 13) {
77-
// @todo Always assign the renderType when compatibility with TYPO3 v12 is dropped
78-
$GLOBALS['TCA']['tt_content']['types'][$contentType]['columnsOverrides']['bodytext']['config']['renderType'] = 'codeEditor';
79-
}
80-
8172
$GLOBALS['TCA']['tt_content']['ctrl']['typeicon_classes'][$contentType] = 'content-codehighlight';
8273
})();

Documentation/Changelog/Index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ and this project adheres to `Semantic Versioning <https://semver.org/spec/v2.0.0
1111
`Unreleased <https://github.com/brotkrueml/codehighlight/compare/v4.2.0...HEAD>`_
1212
-------------------------------------------------------------------------------------
1313

14+
Removed
15+
^^^^^^^
16+
17+
18+
* Compatibility with TYPO3 v12
19+
1420
`4.2.1 <https://github.com/brotkrueml/codehighlight/compare/v4.2.0...v4.2.1>`_ - 2025-10-17
1521
-----------------------------------------------------------------------------------------------
1622

Documentation/Installation/Index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Installation
99
Target group: **Administrators**
1010

1111
.. note::
12-
The extension in version |version| supports TYPO3 v12 LTS and TYPO3 v13 LTS.
12+
The extension in version |version| supports TYPO3 v13 LTS.
1313

1414

1515
Some basic configuration is available which is explained in the

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Code highlighter for various programming, markup and configuration languages bas
1010

1111
| Latest release | TYPO3 | PHP | Updates will contain |
1212
|----------------|-------------------|-------|------------------------------------------------|
13-
| 5.x | 12.4 / 13.4 | ≥ 8.1 | (In development) |
13+
| 5.x | 13.4 | ≥ 8.2 | (In development) |
1414
| 4.x | 12.4 / 13.4 | ≥ 8.1 | Security and bug fixes (EOL expected Apr 2026) |
1515
| 3.x | 11.5 / 12.4 | ≥ 7.4 | End of life (since Oct 2024) |
1616
| 2.x | 9.5 / 10.4 / 11.5 | ≥ 7.2 | End of life (since Feb 2024) |

composer.json

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,20 @@
1616
}
1717
],
1818
"require": {
19-
"php": ">= 8.1",
20-
"typo3/cms-backend": "^12.4 || ^13.4",
21-
"typo3/cms-core": "^12.4 || ^13.4",
22-
"typo3/cms-fluid": "^12.4 || ^13.4",
23-
"typo3/cms-fluid-styled-content": "^12.4 || ^13.4",
24-
"typo3/cms-frontend": "^12.4 || ^13.4"
19+
"php": ">= 8.2",
20+
"typo3/cms-backend": "^13.4",
21+
"typo3/cms-core": "^13.4",
22+
"typo3/cms-fluid": "^13.4",
23+
"typo3/cms-fluid-styled-content": "^13.4",
24+
"typo3/cms-frontend": "^13.4"
2525
},
2626
"require-dev": {
2727
"brotkrueml/coding-standards": "~6.3.0",
2828
"ergebnis/composer-normalize": "~2.48.2",
2929
"phpstan/phpstan": "2.1.32",
30-
"phpunit/phpunit": "^10.5 || ^11.5 || ^12.4",
30+
"phpunit/phpunit": "^11.5 || ^12.4",
3131
"rector/rector": "2.2.9",
32-
"symfony/yaml": "^6.4 || ^7.4"
33-
},
34-
"suggest": {
35-
"typo3/cms-t3editor": "Add syntax highlighting in backend form"
32+
"symfony/yaml": "^7.4"
3633
},
3734
"autoload": {
3835
"psr-4": {

ext_emconf.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111
'version' => '5.0.0-dev',
1212
'constraints' => [
1313
'depends' => [
14-
'typo3' => '12.4.0-13.4.99',
15-
'fluid_styled_content' => '12.4.0-13.4.99',
16-
],
17-
'suggests' => [
18-
't3editor' => '',
14+
'typo3' => '13.4.0-13.4.99',
15+
'fluid_styled_content' => '13.4.0-13.4.99',
1916
],
2017
],
2118
'autoload' => [

0 commit comments

Comments
 (0)