Skip to content

Commit 7135648

Browse files
authored
Merge pull request #138 from helhum/prepare-v5-release
2 parents 449a6ee + bf09056 commit 7135648

4 files changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
php-versions:
14-
- "7.4"
15-
- "8.0"
1614
- "8.1"
1715
- "8.2"
1816
composer-versions:

composer.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"netresearch/composer-installers": "*"
3939
},
4040
"require": {
41-
"php": "^7.4 || ^8.0",
41+
"php": "^8.1",
4242
"composer-plugin-api": "^2.1.0"
4343
},
4444
"require-dev": {
@@ -47,9 +47,6 @@
4747
"phpunit/phpunit": "^8.5",
4848
"friendsofphp/php-cs-fixer": "^2.18"
4949
},
50-
"conflict": {
51-
"composer/installers": "<2.0.0"
52-
},
5350
"scripts": {
5451
"test:php:lint": [
5552
"phplint"
@@ -66,7 +63,7 @@
6663
"extra": {
6764
"class": "TYPO3\\CMS\\Composer\\Installer\\Plugin",
6865
"branch-alias": {
69-
"dev-main": "4.0.x-dev"
66+
"dev-main": "5.0.x-dev"
7067
}
7168
}
7269
}

src/Plugin/Config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ private static function handleRootPackageExtraConfig(IOInterface $io, RootPackag
231231
$config->merge($rootPackageExtraConfig);
232232
$baseDir = $fileSystem->normalizePath($config->get('base-dir'));
233233
$webDir = $fileSystem->normalizePath($config->get('web-dir'));
234-
if (strpos($webDir, $baseDir) !== 0) {
234+
if (!str_starts_with($webDir, $baseDir)) {
235235
unset($rootPackageExtraConfig['typo3/cms']['web-dir']);
236236
$io->writeError('<warning>TYPO3 public path must be a subdirectory of Composer root directory. Resetting web-dir config to default.</warning>');
237237
}

src/Plugin/Util/ExtensionKeyResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ExtensionKeyResolver
3333
public static function resolve(PackageInterface $package): string
3434
{
3535
$extra = $package->getExtra();
36-
if (empty($extra['typo3/cms']['extension-key']) && strpos($package->getType(), 'typo3-cms-') === 0) {
36+
if (empty($extra['typo3/cms']['extension-key']) && str_starts_with($package->getType(), 'typo3-cms-')) {
3737
// The only reason this is enforced, is to ease the transition of extensions of type "typo3-cms-*"
3838
// Since the logic is removed how to derive the extension key from package name, we must enforce
3939
// the extension key to be set to avoid ambiguity of the extension key between previous installers versions and this one

0 commit comments

Comments
 (0)