How to fix: weird phpstan internal errors from class loading when running analyse

Internal error: Internal error: The autoloader expected class “Hoa\Zformat\Parameter” to be defined in file “phar:///app/vendor/phpstan/phpstan/phpstan.phar/vendor/composer/../hoa/zformat/Parameter.php”. The file was found but the class was not in it, the class name or namespace probably has a typo. in file
/app/src/php/WebsiteBundle/Model/StoryBlok/Story.php
Run PHPStan with — debug option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.md
Child process error (exit code 1):
The autoloader expected class "Stringable" to be defined in file "/home/joris/vhosts/wachtrij/backend/vendor/composer/../symfony/polyfill-php80/Resources/stubs/Stringable.php". The file was found but the class was not in it, the class name or namespace probably has a typo.
Debug::enable();

--

--

--

Senior Web Developer — Entrepreneur — yaymemories.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Lecture#01 Arduino Uno — History

Go Modules- A guide for monorepos (Part 1)

Create own Jenkins Image using Docker File

What is Flutter 2.0?

Analysis of YouTube data

Add Animated Charts To Your Dashboards With Streamlit-Python

Tezos Domains Airdrop

How To Get Flight Information of SkyTeam Airline Alliance With An API

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Philipp Scheit

Philipp Scheit

Senior Web Developer — Entrepreneur — yaymemories.com

More from Medium

Symfony Station Communique — 7 January 2021. A look at Symfony and PHP news.

How to Create a Connection to Spotify’s Web API Using Symfony

Integrate static code analysis to PHP projects

Designing a Symfony Validator - the TDD way 📝

A handsome, middle aged black man poking his temple. The image says “tests won’t fail if you have no tests”.