Skip to content

Commit cbf8de5

Browse files
committed
Drop PHP 8.1 support
1 parent ff4cb87 commit cbf8de5

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

Classes/Hooks/ProcessCmdmapClass.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ public function processCmdmap_preProcess(
3333
DataHandler $handler,
3434
false|array $pasteUpdate,
3535
): void {
36-
if($command === 'version'){
36+
if ($command === 'version') {
3737
$register = Register::getRegister();
3838

3939
foreach ($register as $key => $configuration) {
4040
// we just want the event!
41-
if($key === 'ConfigurationGroup'){
41+
if ($key === 'ConfigurationGroup') {
4242
continue;
4343
}
4444

4545
// if it is any event
46-
if($configuration['tableName'] === $table){
47-
switch($value['action'] ?? ''){
46+
if ($configuration['tableName'] === $table) {
47+
switch ($value['action'] ?? '') {
4848
// We need to save the live-uid for deleting the workspace-indexes
4949
// after deleting the workspace version
5050
case 'clearWSID':
@@ -58,7 +58,7 @@ public function processCmdmap_preProcess(
5858
self::$lastProcessedEventId = $uid;
5959
self::$lastProcessedEventIdLive = $row['t3ver_oid'] ?? 0;
6060
break;
61-
// we need to save both values for publishing a deleted record
61+
// we need to save both values for publishing a deleted record
6262
case 'publish':
6363
self::$lastProcessedEventId = $value['swapWith'] ?? 0;
6464
self::$lastProcessedEventIdLive = $uid;
@@ -93,10 +93,10 @@ public function processCmdmap_postProcess(
9393

9494
foreach ($register as $key => $configuration) {
9595
if ('version' === $command && 'tx_calendarize_domain_model_configuration' === $table) {
96-
if('publish' === $action){
96+
if ('publish' === $action) {
9797
$indexer->reindex($key, $configuration['tableName'], self::$lastProcessedEventIdLive);
9898
$this->removeWorkspaceIndexes($configuration, $workspaceId, self::$lastProcessedEventIdLive);
99-
} elseif ('clearWSID' === $action){
99+
} elseif ('clearWSID' === $action) {
100100
$this->removeWorkspaceIndexes($configuration, $workspaceId, self::$lastProcessedEventIdLive);
101101
}
102102
} elseif ($configuration['tableName'] === $table) {
@@ -112,14 +112,14 @@ public function processCmdmap_postProcess(
112112
}
113113
}
114114

115-
protected function removeWorkspaceIndexes(array $configuration, int $workspaceId, int $parentId) : void
115+
protected function removeWorkspaceIndexes(array $configuration, int $workspaceId, int $parentId): void
116116
{
117117
$connection = GeneralUtility::makeInstance(ConnectionPool::class)
118118
->getConnectionForTable('tx_calendarize_domain_model_index');
119119

120120
$connection->delete(
121121
'tx_calendarize_domain_model_index',
122-
['t3ver_wsid' => $workspaceId, 'foreign_uid' => $parentId, 'unique_register_key' => $configuration['uniqueRegisterKey']]
122+
['t3ver_wsid' => $workspaceId, 'foreign_uid' => $parentId, 'unique_register_key' => $configuration['uniqueRegisterKey']],
123123
);
124124
}
125125
}

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
}
3434
],
3535
"require": {
36-
"php": "^8.1",
36+
"php": "^8.2",
3737
"ext-json": "*",
3838
"ext-pdo": "*",
3939
"typo3/cms-core": "^12.4||^13.4",
@@ -95,10 +95,10 @@
9595
"@tool:phpstan"
9696
],
9797
"tool:php-cs-fixer": [
98-
"PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --config Resources/Private/Build/PhpCsFixer.php"
98+
"php-cs-fixer fix --config Resources/Private/Build/PhpCsFixer.php"
9999
],
100100
"tool:php-cs-fixer-check": [
101-
"PHP_CS_FIXER_IGNORE_ENV=1 php-cs-fixer fix --config Resources/Private/Build/PhpCsFixer.php --dry-run"
101+
"php-cs-fixer fix --config Resources/Private/Build/PhpCsFixer.php --dry-run"
102102
],
103103
"tool:phpunit": [
104104
"phpunit --configuration=Tests/Unit/Build/UnitTests.xml"

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'constraints' => [
1616
'depends' => [
1717
'typo3' => '12.4.0-13.4.99',
18-
'php' => '8.1.0-8.3.99',
18+
'php' => '8.2.0-8.4.99',
1919
],
2020
'suggests' => [
2121
'dashboard' => '12.4.0-13.4.99',

0 commit comments

Comments
 (0)