File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66use ComposerUnused \ComposerUnused \Configuration \NamedFilter ;
77
88return 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};
Original file line number Diff line number Diff line change 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" : {
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments