akaunting / laravel-firewall

Web Application Firewall (WAF) package for Laravel
https://akaunting.com
MIT License
943 stars 106 forks source link

Not able to add this package using composer #17

Closed damku999 closed 4 years ago

damku999 commented 4 years ago

My server is below configurations php -v PHP 7.4.1 (cli) (built: Dec 17 2019 19:23:59) ( NTS Visual C++ 2017 x64 ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Xdebug v2.9.0, Copyright (c) 2002-2019, by Derick Rethans

"require": { "php": "^7.2.5", "fideloper/proxy": "^4.2", "fruitcake/laravel-cors": "^1.0", "guzzlehttp/guzzle": "^6.3", "laravel/framework": "^7.0", "laravel/passport": "^9.2", "laravel/tinker": "^2.0", "webpatser/laravel-uuid": "^3.0" },

composer require akaunting/firewall Using version ^1.2 for akaunting/firewall ./composer.json has been updated Loading composer repositories with package information Updating dependencies (including require-dev) Package operations: 4 installs, 0 updates, 0 removals

Installation failed, reverting ./composer.json to its original content.

TypeError

Argument 2 passed to Illuminate\Routing\Router::middlewareGroup() must be of the type array, null given, called in C:\wamp64\www\odatawebauth\vendor\akaunting\firewall\src\Provider.php on line 60

at C:\wamp64\www\project\vendor\laravel\framework\src\Illuminate\Routing\Router.php:879 875| @param string $name 876| @param array $middleware 877| @return $this 878| /

879| public function middlewareGroup($name, array $middleware) 880| { 881| $this->middlewareGroups[$name] = $middleware; 882| 883| return $this;

1 C:\wamp64\www\odatawebauth\vendor\akaunting\firewall\src\Provider.php:60 Illuminate\Routing\Router::middlewareGroup("firewall.all")

2 C:\wamp64\www\project\vendor\akaunting\firewall\src\Provider.php:33 Akaunting\Firewall\Provider::registerMiddleware(Object(Illuminate\Routing\Router))

damku999 commented 4 years ago

resolved