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
phpstan-doctrine crashes phpstan #169
Comments
Hi, yeah, PHPStan crashes in an ugly way if there's an error in the provided objectManagerLoader :/ But the real problem is a typo in diff --git a/tests/object-manager.php b/tests/object-manager.php
index 0e9f0e3d..4184eef5 100644
--- a/tests/object-manager.php
+++ b/tests/object-manager.php
@@ -1,6 +1,6 @@
<?php
require dirname(__DIR__).'/config/bootstrap.php';
-$kernel = new AppKernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
+$kernel = new App\Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
$kernel->boot();
return $kernel->getContainer()->get('doctrine')->getManager();
I figured it out because I ran PHPStan with
|
Also, I modified PHPStan so that it shows something useful instead :) phpstan/phpstan-src@cbbbd36 Closing - feel free to ask more questions but I think it's solved :) |
Oh sorry for the noise then :) But good if this lead to some improvement in error output at least. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm trying to add this project to my phpstan config for packagist.org, but it crashes with:
You can see it at https://github.com/composer/packagist/runs/1696331140?check_suite_focus=true too - and reproduce using the
ci
branch of thecomposer/packagist
repo, runningcomposer phpstan
is enough.The text was updated successfully, but these errors were encountered: