-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
array_keys() expects parameter 1 to be array, null given in src/Application/Adapters/Laravel/Preset.php #70
Comments
That's because you are using a different php binary in your CLI. Let's keep this open, maybe someone would like to help you. |
Hey dude that's not issue.Actually I was running my project in php 7.1.23 but still I had installed package and it's was working fine . Just try |
I updated my PHP CLI following the answer here link But now, when I try to use it, it gives me:
Thanks/Obg |
Are you trying in laravel app or some other can you specify that |
Can I see your composer.json? I think I know the issue. I need to adapt the code to be prepared to a composer.json without requirements section. |
As I said in my first post, it's non framework. Just some simple PHP classes.
|
Alright, we need to prepare the class https://github.com/nunomaduro/phpinsights/blob/master/src/Application/ConfigResolver.php and all presets https://github.com/nunomaduro/phpinsights/tree/master/src/Application/Adapters to that type of composer.json. |
Check if composer require is setted and contains an array Add tests on ConfigResolver::guess
Check if composer require is setted and contains an array Add tests on ConfigResolver::guess
Check if composer require is setted and contains an array Add tests on ConfigResolver::guess
Check if composer require is setted and contains an array Add tests on ConfigResolver::guess
Check if composer require is setted and contains an array in differents Frameworks Presets Add tests on ConfigResolver::guess
Check if composer require is setted and contains an array in differents Frameworks Presets Add tests on ConfigResolver::guess
@mjpramos Can you run a |
Thanks! Works perfectly now :) |
Thanks @Jibbarth for this! |
I'm trying to install phpinsights on a non framework project and although my PHP version is 7.2.10 (MAMP on MacOS), I get the error stating that my PHP version is 7.1.23.
The text was updated successfully, but these errors were encountered: