phpstan-knp-doctrine-behaviors-bug Bug reproduction with PHP8, knplabs/doctrine-behaviors and __toString method Install project with composer install Run phpstan with command php vendor/bin/phpstan phpstan extension used by knplabs extension You can comment/uncomment method __toString in Article