Skip to content

Commit

Permalink
!!![TASK] change requirements
Browse files Browse the repository at this point in the history
* add TYPO3 v13 Support
* drop TYPO3 v11 Support
  • Loading branch information
achimfritz authored and hannesbochmann committed Mar 3, 2025
1 parent 8ef0ebf commit d871200
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
10 changes: 3 additions & 7 deletions Classes/Domain/Repository/MonitorRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function countByInput(InputInterface $input): int
)
)
)
->execute();
->executeQuery();

if (!$result instanceof Result) {
return 0;
Expand All @@ -120,13 +120,9 @@ public function insertInput(InputInterface $input): ?string
];

$connection = $this->getConnection();
$query = $connection->createQueryBuilder()->insert($this->getTableName())->values($inputRecord);
$connection->createQueryBuilder()->insert($this->getTableName())->values($inputRecord)->executeStatement();

if (!$query->execute()) {
return null;
}

return $connection->lastInsertId($this->getTableName());
return $connection->lastInsertId();
}

/**
Expand Down
15 changes: 2 additions & 13 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"typo3-ter/mksanitizedparameters": "self.version"
},
"require": {
"php": "^7.4 || ^8.0",
"typo3/cms-core": "^11.5.7 || ^12.4.7"
"typo3/cms-core": "^12.4 || ^13.4"
},
"require-dev": {
"php-parallel-lint/php-parallel-lint": "^1.3",
Expand All @@ -38,7 +37,7 @@
"phpstan/extension-installer": "^1.3",
"saschaegerer/phpstan-typo3": "^1.9",
"phpspec/prophecy-phpunit": "^2.0.1",
"typo3/testing-framework": "^6.0 || ^7.0"
"typo3/testing-framework": "^8.2"
},
"autoload": {
"psr-4": {
Expand Down Expand Up @@ -91,20 +90,10 @@
".Build/bin/php-cs-fixer fix -v --dry-run --diff --ansi"
],
"test:phpcompatibility": [
"@test:phpcompatibility:7.4",
"@test:phpcompatibility:8.0",
"@test:phpcompatibility:8.1",
"@test:phpcompatibility:8.2",
"@test:phpcompatibility:8.3"
],
"test:phpcompatibility:7.4": [
"[ -e .Build/bin/phpcs ] || composer update",
".Build/bin/phpcs --ignore=.Build/* -p . --standard=.Build/vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 7.4"
],
"test:phpcompatibility:8.0": [
"[ -e .Build/bin/phpcs ] || composer update",
".Build/bin/phpcs --ignore=.Build/* -p . --standard=.Build/vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.0"
],
"test:phpcompatibility:8.1": [
"[ -e .Build/bin/phpcs ] || composer update",
".Build/bin/phpcs --ignore=.Build/* -p . --standard=.Build/vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion 8.1"
Expand Down

0 comments on commit d871200

Please sign in to comment.