Skip to content

Commit 362653e

Browse files
committed
⬆️ allow TYPO3 13 and PHP 8.4
1 parent e25771b commit 362653e

5 files changed

Lines changed: 17 additions & 12 deletions

File tree

.github/workflows/tasks.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
php: [ '8.1', '8.2', '8.3' ]
13-
typo3: [ '11', '12' ]
12+
php: [ '8.1', '8.2', '8.3', '8.4' ]
13+
typo3: [ '11', '12', '13' ]
14+
exclude:
15+
- php: '8.1'
16+
typo3: '13'
17+
- php: '8.4'
18+
typo3: '11'
1419
steps:
1520
- name: Setup PHP with PECL extension
1621
uses: shivammathur/setup-php@v2
@@ -26,4 +31,3 @@ jobs:
2631
- run: composer require typo3/minimal="^${{ matrix.typo3 }}" --dev
2732
- run: composer install --no-interaction --no-progress
2833
- run: ./vendor/bin/grumphp run --ansi
29-

Classes/Service/MinifyService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function minify(string $html): string
3939
$output = [];
4040
$languageMeta = preg_match_all('#<meta charset=[a-zA-Z0-9-_"]*>#', $html, $output);
4141
if ($languageMeta) {
42-
$insertAt = strpos($html, (string)$output[0][0]) + strlen($output[0][0]);
42+
$insertAt = strpos($html, $output[0][0]) + strlen($output[0][0]);
4343
$html = substr($html, 0, $insertAt) . $typo3Comment . substr($html, $insertAt);
4444
} else {
4545
$html = $htmlMin->minify($html);

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@
88
"source": "https://github.com/pluswerk/minify"
99
},
1010
"require": {
11-
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
11+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
1212
"composer-runtime-api": "^2",
13-
"typo3/cms-core": "^11.5 || ^12.4",
13+
"typo3/cms-core": "^11.5 || ^12.4 || ^13.4",
1414
"voku/html-min": "^4.5"
1515
},
1616
"require-dev": {
1717
"andersundsehr/ssi-include": "^1.1.0",
18-
"pluswerk/grumphp-config": "^7",
19-
"saschaegerer/phpstan-typo3": "^1.10.0",
20-
"ssch/typo3-rector": "^2.5.0"
18+
"pluswerk/grumphp-config": "^7 || ^10",
19+
"saschaegerer/phpstan-typo3": "^1.10.0 || ^2.1.1",
20+
"ssch/typo3-rector": "^2.5.0 || ^3.6.2"
2121
},
2222
"autoload": {
2323
"psr-4": {

ext_emconf.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
'version' => InstalledVersions::getPrettyVersion('pluswerk/minify'),
1414
'constraints' => [
1515
'depends' => [
16-
'typo3' => '11.5.0 - 12.99.99',
16+
'typo3' => '11.5.0 - 13.99.99',
1717
],
1818
'conflicts' => [],
1919
'suggests' => [],

rector.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
$rectorConfig->cacheDirectory('./var/cache/rector');
1515

1616
$rectorConfig->paths(
17-
array_filter(explode("\n", (string)shell_exec("git ls-files | xargs ls -d 2>/dev/null | grep '\.php$'")))
17+
array_filter(explode("\n", (string)shell_exec("git ls-files | xargs ls -d 2>/dev/null | grep -E '\.(php)$'")))
1818
);
1919

2020
// define sets of rules
2121
$rectorConfig->sets(
2222
[
2323
...RectorSettings::sets(true),
24-
...RectorSettings::setsTypo3(true),
24+
...RectorSettings::setsTypo3(false),
2525
]
2626
);
2727

@@ -31,6 +31,7 @@
3131
[
3232
...RectorSettings::skip(),
3333
...RectorSettings::skipTypo3(),
34+
3435
/**
3536
* rector should not touch these files
3637
*/

0 commit comments

Comments
 (0)