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

Undefined index: require #11

Closed
kattatzu opened this issue Apr 9, 2019 · 3 comments
Closed

Undefined index: require #11

kattatzu opened this issue Apr 9, 2019 · 3 comments

Comments

@kattatzu
Copy link

kattatzu commented Apr 9, 2019

I have run phpinsights but I get the following error:

~/Sites/guapapp > php artisan insights

   ErrorException  : Undefined index: require

at /Users/kattatzu/Sites/guapapp/vendor/nunomaduro/phpinsights/src/Domain/Insights/Laravel/ComposerCheckLaravelVersion.php:28
    24|         } catch (RuntimeException $e) {
    25|             return true;
    26|         }
    27|
  > 28|         return strpos('5.8.*', $contents['require']['laravel/framework']) === false;
    29|     }
    30|
    31|     /**
    32|      * {@inheritdoc}

  Exception trace:

  1   Illuminate\Foundation\Bootstrap\HandleExceptions::handleError("Undefined index: require", "/Users/kattatzu/Sites/guapapp/vendor/nunomaduro/phpinsights/src/Domain/Insights/Laravel/ComposerCheckLaravelVersion.php", [])
      /Users/kattatzu/Sites/guapapp/vendor/nunomaduro/phpinsights/src/Domain/Insights/Laravel/ComposerCheckLaravelVersion.php:28

  2   NunoMaduro\PhpInsights\Domain\Insights\Laravel\ComposerCheckLaravelVersion::hasIssue()
      /Users/kattatzu/Sites/guapapp/vendor/nunomaduro/phpinsights/src/Application/Console/Helpers/Row.php:95

Please use the argument -v to see more details.

@szepeviktor
Copy link
Contributor

This project is WIP.

@nunomaduro
Copy link
Owner

@kattatzu Can I see your composer.json ?

@nunomaduro
Copy link
Owner

@kattatzu Anyway, should be good now.

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

3 participants