Skip to content

Commit ee3e6d3

Browse files
authored
Make ready for v14 (#481)
1 parent 718a3fa commit ee3e6d3

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

Classes/LinkAnalyzer.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use TYPO3\CMS\Core\Database\Connection;
2121
use TYPO3\CMS\Core\Database\ConnectionPool;
2222
use TYPO3\CMS\Core\Database\Query\Restriction\DeletedRestriction;
23+
use TYPO3\CMS\Core\Information\Typo3Version;
2324
use TYPO3\CMS\Core\Localization\LanguageService;
2425
use TYPO3\CMS\Core\Utility\GeneralUtility;
2526

@@ -61,7 +62,8 @@ public function __construct(
6162
BrokenLinkRepository $brokenLinkRepository,
6263
ContentRepository $contentRepository,
6364
PagesRepository $pagesRepository,
64-
protected ConnectionPool $connectionPool
65+
protected ConnectionPool $connectionPool,
66+
protected Typo3Version $typo3Version
6567
) {
6668
$this->getLanguageService()->includeLLFile('EXT:brofix/Resources/Private/Language/Module/locallang.xlf');
6769
$this->brokenLinkRepository = $brokenLinkRepository;
@@ -742,7 +744,9 @@ protected function getSelectFields(string $table, array $selectFields = []): arr
742744
}
743745
if ($table === 'tt_content') {
744746
$defaultFields[] = 'colPos';
745-
$defaultFields[] = 'list_type';
747+
if ($this->typo3Version->getMajorVersion() < 14) {
748+
$defaultFields[] = 'list_type';
749+
}
746750
}
747751
foreach ($selectFields as $field) {
748752
// field must have TCA configuration

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@
3535
},
3636
"require": {
3737
"php": "^8.2",
38-
"typo3/cms-backend": "^13.4",
39-
"typo3/cms-core": "^13.4",
40-
"typo3/cms-fluid": "^13.4",
41-
"typo3/cms-install": "^13.4"
38+
"typo3/cms-backend": "^13.4 || ^14",
39+
"typo3/cms-core": "^13.4 || ^14",
40+
"typo3/cms-fluid": "^13.4 || ^14",
41+
"typo3/cms-install": "^13.4 || ^14"
4242
},
4343
"require-dev": {
4444
"bnf/phpstan-psr-container": "^1.1",

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'version' => '7.0.1-dev',
1414
'constraints' => [
1515
'depends' => [
16-
'typo3' => '13.4.0-13.4.99',
16+
'typo3' => '13.4.0-14.4.99',
1717
],
1818
'conflicts' => [],
1919
'suggests' => [

rector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
->withConfiguredRule(ExtEmConfRector::class, [
5353
// TYPO3 v13: PHP 8.2
5454
ExtEmConfRector::PHP_VERSION_CONSTRAINT => '8.2.0-8.4.99',
55-
ExtEmConfRector::TYPO3_VERSION_CONSTRAINT => '13.4.0-13.4.99',
55+
ExtEmConfRector::TYPO3_VERSION_CONSTRAINT => '13.4.0-14.4.99',
5656
ExtEmConfRector::ADDITIONAL_VALUES_TO_BE_REMOVED => [],
5757
])
5858
// If you use withImportNames(), you should consider excluding some TYPO3 files.

0 commit comments

Comments
 (0)