Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing package #121

Open
josedumas opened this issue Dec 14, 2019 · 0 comments
Open

Error installing package #121

josedumas opened this issue Dec 14, 2019 · 0 comments

Comments

@josedumas
Copy link

I get this error when I try install the library with the command composer require backup-manager/laravel
`
Using version ^1.4 for backup-manager/laravel
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Dependency resolution completed in 0.481 seconds
Analyzed 17059 packages to resolve dependencies
Analyzed 722956 rules to resolve dependencies
Nothing to install or update
Dependency resolution completed in 0.001 seconds
Generating optimized autoload files

post-autoload-dump: Illuminate\Foundation\ComposerScripts::postAutoloadDump
post-autoload-dump: @php artisan package:discover --ansi

Symfony\Component\Debug\Exception\FatalThrowableError : Argument 1 passed to BackupManager\Config\Config::__construct() must be of the type array, null given, called in /shared/httpd/laratransric/laratransric/vendor/backup-manager/laravel/src/Laravel55ServiceProvider.php on line 52

at /shared/httpd/laratransric/laratransric/vendor/backup-manager/backup-manager/src/Config/Config.php:28
24|
25| /**
26| * @param array $config
27| */

28| public function __construct(array $config) {
29| $this->config = $config;
30| }
31|
32| /**

Exception trace:

1 BackupManager\Config\Config::__construct()
/shared/httpd/laratransric/laratransric/vendor/backup-manager/laravel/src/Laravel55ServiceProvider.php:52

2 BackupManager\Laravel\Laravel55ServiceProvider::BackupManager\Laravel{closure}(Object(Illuminate\Foundation\Application), [])
/shared/httpd/laratransric/laratransric/vendor/laravel/framework/src/Illuminate/Container/Container.php:799

Please use the argument -v to see more details.
Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json to its original content.
`
My system is:

Laravel: 6.0
PHP: 7.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant