--level used: 5
Laravel Version: 7.30.4
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": [
"framework",
"laravel"
],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.3",
"browner12/helpers": "^3.1",
"cartalyst/stripe-laravel": "^12.0",
"doctrine/dbal": "^2.10",
"fideloper/proxy": "^4.3",
"fruitcake/laravel-cors": "^1.0",
"khanamiryan/qrcode-detector-decoder": "^1.0",
"laravel/framework": "^7.0",
"laravel/tinker": "^2.4",
"laravel/ui": "^2.0",
"laravelcollective/html": "^6.1",
"paypal/rest-api-sdk-php": "^1.14",
"pusher/pusher-php-server": "^3.4",
"sentry/sentry-laravel": "1.9.0",
"twilio/sdk": "^6.5",
"werneckbh/laravel-qr-code": "^0.1"
},
"require-dev": {
"barryvdh/laravel-debugbar": "^3.3",
"barryvdh/laravel-ide-helper": "2.8.2",
"deployer/deployer": "^6.8",
"facade/ignition": "^2.0",
"fzaninotto/faker": "^1.9",
"mockery/mockery": "^1.4",
"nunomaduro/collision": "^4.1",
"nunomaduro/larastan": "^0.6.13",
"phpunit/phpunit": "^8.5"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"scripts": {
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi"
],
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate --ansi"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
running ./vendor/bin/phpstan analyse throws this error
Note: Using configuration file /xxx/phpstan.neon.
OutOfBoundsException thrown in phar:///xxx/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/InstalledVersions.php on line 1081 while loading bootstrap file /xxx/vendor/nunomaduro/larastan/bootstrap.php: Package "sentry/sentry" is not installed
so what am i missing here?
Have you tried to upgrade your Composer tool to v2 latest? Came out today 馃帀
@szepeviktor : thanks for the tip. so after removing ./vendor, updating composer, rerunning composer install, it works now
I just installed Larastan on a clean vendor folder with Composer v2 and this issue is popping up for me. I had previously installed Larastan however had to remove my vendor folder for unrelated reasons and now when attempting to run phpstan analyze I see the sentry-related error in this issue.
Hello Brandon.
It is extremely hard to help you if you provide no data.
Have you tried upgrading your Composer tool to the latest release?
@szepeviktor my apologies for lack of data. I have not upgraded Composer, but we are running Composer v2.0.8. I just upgraded to Composer v2.0.9 and was able to run phpstan analyse successfully. I am unsure of why this is the case as I checked the changelog for v2.0.9 and did not see anything fixed that could be related? But who knows.
was able to run phpstan analyse successfully
Fixed InstalledVersions to report all packages when several vendor dirs are present in the same runtime
Maybe this one?
@szepeviktor that actually sounds like it after re-reading, good catch.
Most helpful comment
@szepeviktor : thanks for the tip. so after removing ./vendor, updating composer, rerunning composer install, it works now