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

Interface "Psalm\Plugin\Hook\AfterMethodCallAnalysisInterface" not found #2

Open
badmansan opened this issue Dec 6, 2023 · 0 comments

Comments

@badmansan
Copy link

Seems this problem with psalm 5+

Full stack trace:

docker compose exec php-fpm vendor/bin/psalm --no-cache
Warning: "findUnusedBaselineEntry" will default to "true" in Psalm 6. You should explicitly enable or disable this setting.
Warning: "findUnusedCode" will default to "true" in Psalm 6. You should explicitly enable or disable this setting.
Warning: "findUnusedBaselineEntry" will default to "true" in Psalm 6. You should explicitly enable or disable this setting.
Warning: "findUnusedCode" will default to "true" in Psalm 6. You should explicitly enable or disable this setting.
Target PHP version: 8.2 (inferred from current PHP version) Enabled extensions: simplexml (unsupported extensions: zend-opcache).
Scanning files...
Uncaught Error: Interface "Psalm\Plugin\Hook\AfterMethodCallAnalysisInterface" not found in /app/vendor/orklah/psalm-strict-visibility/hooks/StrictVisibility.php:27
Stack trace:
#0 /app/vendor/composer/ClassLoader.php(576): include()
#1 /app/vendor/composer/ClassLoader.php(427): Composer\Autoload\{closure}('/app/vendor/com...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('Orklah\\PsalmStr...')
#3 /app/vendor/orklah/psalm-strict-visibility/Plugin.php(13): class_exists('Orklah\\PsalmStr...')
#4 /app/vendor/vimeo/psalm/src/Psalm/Config.php(1675): Orklah\PsalmStrictVisibility\Plugin->__invoke(Object(Psalm\PluginRegistrationSocket), NULL)
#5 /app/vendor/vimeo/psalm/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php(508): Psalm\Config->initializePlugins(Object(Psalm\Internal\Analyzer\ProjectAnalyzer))
#6 /app/vendor/vimeo/psalm/src/Psalm/Internal/Cli/Psalm.php(373): Psalm\Internal\Analyzer\ProjectAnalyzer->check('/app/', true)
#7 /app/vendor/vimeo/psalm/psalm(9): Psalm\Internal\Cli\Psalm::run(Array)
#8 /app/vendor/bin/psalm(119): include('/app/vendor/vim...')
#9 {main}

Next Psalm\Exception\ConfigException: Failed to invoke plugin Orklah\PsalmStrictVisibility\Plugin in /app/vendor/vimeo/psalm/src/Psalm/Config.php:1677
Stack trace:
#0 /app/vendor/vimeo/psalm/src/Psalm/Internal/Analyzer/ProjectAnalyzer.php(508): Psalm\Config->initializePlugins(Object(Psalm\Internal\Analyzer\ProjectAnalyzer))
#1 /app/vendor/vimeo/psalm/src/Psalm/Internal/Cli/Psalm.php(373): Psalm\Internal\Analyzer\ProjectAnalyzer->check('/app/', true)
#2 /app/vendor/vimeo/psalm/psalm(9): Psalm\Internal\Cli\Psalm::run(Array)
#3 /app/vendor/bin/psalm(119): include('/app/vendor/vim...')
#4 {main}
(Psalm 5.17.0@c620f6e80d0abfca532b00bda366062aaedf6e5d crashed due to an uncaught Throwable)
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