Skip to content

Commit 4f72ec9

Browse files
committed
Bump minimum PHP-version
1 parent c97c2ff commit 4f72ec9

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
"class": "SimpleSAML\\Composer\\ModuleInstallerPlugin"
1313
},
1414
"require": {
15-
"php": "^8.1",
15+
"php": "^8.2",
1616
"ext-mbstring": "*",
1717

18-
"composer/composer": "~2.8.9",
18+
"composer/composer": "~2.8.12",
1919
"composer-plugin-api": "~2.6.0",
20-
"simplesamlphp/assert": "~1.8.1"
20+
"simplesamlphp/assert": "~1.9.1"
2121
},
2222
"require-dev": {
23-
"simplesamlphp/simplesamlphp-test-framework": "~1.9.2"
23+
"simplesamlphp/simplesamlphp-test-framework": "~1.10.2"
2424
},
2525
"config": {
2626
"allow-plugins": {

src/ModuleInstaller.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@ protected function getPackageBasePath(PackageInterface $package)
4646
$name = $package->getPrettyName();
4747
if (!preg_match('@^.*/simplesamlphp-(module|assets)-(.+)$@', $name, $matches)) {
4848
throw new InvalidArgumentException(sprintf(
49-
'Unable to install module %s, package name must be on the form "VENDOR/simplesamlphp-(module|assets)-MODULENAME".',
49+
'Unable to install module %s,'
50+
. ' package name must be in the form "VENDOR/simplesamlphp-(module|assets)-MODULENAME".',
5051
$name,
5152
));
5253
}
@@ -59,7 +60,8 @@ protected function getPackageBasePath(PackageInterface $package)
5960
$moduleDir,
6061
'@^[a-z0-9_.-]*$@',
6162
sprintf(
62-
'Unable to install module %s, module name must only contain characters from a-z, 0-9, "_", "." and "-".',
63+
'Unable to install module %s,'
64+
. ' module name must only contain characters from a-z, 0-9, "_", "." and "-".',
6365
$name
6466
),
6567
InvalidArgumentException::class
@@ -91,7 +93,8 @@ protected function getPackageBasePath(PackageInterface $package)
9193
mb_strtolower($mixedCaseModuleName, 'utf-8'),
9294
$moduleDir,
9395
sprintf(
94-
'Unable to install module %s, "%s" must match the package name except that it can contain uppercase letters.',
96+
'Unable to install module %s,'
97+
. ' "%s" must match the package name except that it can contain uppercase letters.',
9598
$name,
9699
self::MIXED_CASE
97100
),

0 commit comments

Comments
 (0)