Skip to content

Commit 2a6f4f3

Browse files
Merge pull request #34 from move-elevator/feature/deployer-v8-support
chore(deps): support deployer v8
2 parents d9dfc7c + c7d5d19 commit 2a6f4f3

3 files changed

Lines changed: 5 additions & 6 deletions

File tree

composer-unused.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
use ComposerUnused\ComposerUnused\Configuration\NamedFilter;
77

88
return static function (Configuration $config): Configuration {
9-
// These packages are consumed via Deployer's recipe loading mechanism,
10-
// not through PHP `use`/autoload, so composer-unused cannot detect them.
9+
// deployer-extended is consumed via Deployer's recipe loading mechanism,
10+
// not through PHP `use`/autoload, so composer-unused cannot detect it.
1111
return $config
12-
->addNamedFilter(NamedFilter::fromString('deployer/deployer'))
1312
->addNamedFilter(NamedFilter::fromString('sourcebroker/deployer-extended'));
1413
};

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"php": "^8.1",
1616
"ext-json": "*",
1717
"ext-pcre": "*",
18-
"deployer/deployer": "^7.0",
19-
"sourcebroker/deployer-extended": "^24.0",
18+
"deployer/deployer": "^7.0 || ^8.0",
19+
"sourcebroker/deployer-extended": "^24.2",
2020
"sourcebroker/deployer-loader": "^5.0"
2121
},
2222
"require-dev": {

src/Utility/VarUtility.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function getDatabaseVarByType(string $var = 'password'): string|bo
2121
{
2222
$var = ucfirst($var);
2323
$type = get('app_type');
24-
$functionName = "\Deployer\getDatabase{$var}For" . ucfirst($type);
24+
$functionName = "\Deployer\getDatabase{$var}For" . ucfirst((string) $type);
2525
require_once(__DIR__ . "/../../deployer/$type/task/deploy_database.php");
2626
if (function_exists($functionName)) {
2727
return call_user_func($functionName);

0 commit comments

Comments
 (0)