Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Compatibility with changes in TYPO3 11.5.35, 12.4.10, and 12.4.11 #113

Merged
merged 10 commits into from
Feb 26, 2024
28 changes: 14 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,27 +156,27 @@ jobs:
- typo3-version: ^12.4
php-version: 8.1
composer-dependencies: highest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
- typo3-version: ^12.4
php-version: 8.1
composer-dependencies: lowest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
- typo3-version: ^12.4
php-version: 8.2
composer-dependencies: highest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
- typo3-version: ^12.4
php-version: 8.2
composer-dependencies: lowest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
- typo3-version: ^12.4
php-version: 8.3
composer-dependencies: highest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
- typo3-version: ^12.4
php-version: 8.3
composer-dependencies: lowest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
functional-tests:
name: "Functional tests"
runs-on: ubuntu-20.04
Expand Down Expand Up @@ -209,12 +209,12 @@ jobs:
- name: "Install lowest dependencies with composer"
if: "matrix.composer-dependencies == 'lowest'"
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest
composer update --no-ansi --no-interaction --no-progress --with-dependencies --prefer-lowest typo3/minimal:"$TYPO3" $ADDITIONAL_REQUIREMENTS
composer show
- name: "Install highest dependencies with composer"
if: "matrix.composer-dependencies == 'highest'"
run: |
composer update --no-ansi --no-interaction --no-progress --with-dependencies
composer update --no-ansi --no-interaction --no-progress --with-dependencies typo3/minimal:"$TYPO3" $ADDITIONAL_REQUIREMENTS
composer show
- name: "Start MySQL"
run: "sudo /etc/init.d/mysql start"
Expand Down Expand Up @@ -262,24 +262,24 @@ jobs:
- typo3-version: ^12.4
php-version: 8.1
composer-dependencies: highest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
- typo3-version: ^12.4
php-version: 8.1
composer-dependencies: lowest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
- typo3-version: ^12.4
php-version: 8.2
composer-dependencies: highest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
- typo3-version: ^12.4
php-version: 8.2
composer-dependencies: lowest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
- typo3-version: ^12.4
php-version: 8.3
composer-dependencies: highest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
- typo3-version: ^12.4
php-version: 8.3
composer-dependencies: lowest
additional-requirements: "typo3/cms-reactions"
additional-requirements: "typo3/cms-reactions:^12.4"
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function addSortingIntentToMetaData(array $fieldConfigurations)
foreach ($fieldConfigurations as $fieldName => $configuration) {
$sortingIntent = $recordOperation->getDataForDataHandler()[$fieldName] ?? [];

if (($sortingIntent ?? []) === []) {
if ($sortingIntent === []) {
continue;
}

Expand Down
1 change: 1 addition & 0 deletions Classes/DataHandling/Operation/Event/Handler/SetPid.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function __invoke(AbstractRecordOperationEvent $event): void
if (
!$event->getRecordOperation()->isDataFieldSet('pid')
&& $event->getRecordOperation() instanceof CreateRecordOperation
&& $event->getRecordOperation()->getTable() !== 'sys_file'
) {
$event->getRecordOperation()->setDataFieldForDataHandler(
'pid',
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"php": "~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0",
"ext-json": "*",
"ext-pdo": "*",
"symfony/console": "^5.4 || ^6.0",
"symfony/polyfill-php81": "^1.28",
"typo3/cms-core": "^11.5.8 || ^12.4.6",
"typo3/cms-fluid": "^11.5.8 || ^12.4.6",
Expand Down
2 changes: 1 addition & 1 deletion ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$EM_CONF['interest'] = [
'title' => 'Integration REST API',
'description' => 'REST and CLI API for adding, updating, and deleting records in TYPO3. Tracks relations so records can be inserted in any order. Uses remote ID mapping so you don\'t have to keep track of what UID a record has gotten after import. Data is inserted using backend APIs as if a real human did it, so you can can inspect the record history and undo actions.',
'version' => '2.1.0',
'version' => '2.1.1',
'state' => 'stable',
'category' => 'plugin',
'constraints' => [
Expand Down
Loading