- 
  Notifications
 You must be signed in to change notification settings 
- Fork 111
Commit 4cd7002
Ignore errors while loading ObjectManager
It's possible to configure a `objectManagerLoader` that returns an instance to your configured Doctrine manager.
This works great, and it gives PHPStan super capabilities.
In most cases, you would fetch this object manager from the container from your framework (e.g. Symfony).
But that requires the Symfony container to be compiled and booted.
All good, unless you make a typo in one of your service configurations.
You're left with an internal error when running PHPStan:
```
<unknown location> Internal error: You have requested a non-existent service "some_service".
while analysing file /Volumes/CS/www/src/SomeFile.php
Run PHPStan with -v option and post the stack trace to:
https://github.com/phpstan/phpstan/issues/new?template=Bug_report.yaml
Found 1 error
1 parent a1a9efb commit 4cd7002
File tree
2 files changed
+26
-2
lines changed- src- Doctrine
- Type/Doctrine
 
2 files changed
+26
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 30 | 30 |  | |
| 31 | 31 |  | |
| 32 | 32 |  | |
| 33 | + | ||
| 34 | + | ||
| 33 | 35 |  | |
| 34 | 36 |  | |
| 35 | 37 |  | |
| 36 | 38 |  | |
| 37 | 39 |  | |
| 38 | - | ||
| 40 | + | ||
| 41 | + | ||
| 42 | + | ||
| 43 | + | ||
| 44 | + | ||
| 45 | + | ||
| 46 | + | ||
| 47 | + | ||
| 48 | + | ||
| 39 | 49 |  | |
| 40 | 50 |  | |
| 41 | 51 |  | |
|  | |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 9 | 9 |  | |
| 10 | 10 |  | |
| 11 | 11 |  | |
| 12 | + | ||
| 12 | 13 |  | |
| 13 | 14 |  | |
| 14 | 15 |  | |
|  | |||
| 26 | 27 |  | |
| 27 | 28 |  | |
| 28 | 29 |  | |
| 30 | + | ||
| 31 | + | ||
| 29 | 32 |  | |
| 30 | 33 |  | |
| 31 | 34 |  | |
|  | |||
| 89 | 92 |  | |
| 90 | 93 |  | |
| 91 | 94 |  | |
| 95 | + | ||
| 96 | + | ||
| 97 | + | ||
| 98 | + | ||
| 99 | + | ||
| 92 | 100 |  | |
| 93 | 101 |  | |
| 94 | 102 |  | |
|  | |||
| 160 | 168 |  | |
| 161 | 169 |  | |
| 162 | 170 |  | |
| 163 | - | ||
| 171 | + | ||
| 172 | + | ||
| 173 | + | ||
| 174 | + | ||
| 175 | + | ||
| 176 | + | ||
| 177 | + | ||
| 164 | 178 |  | |
| 165 | 179 |  | |
| 166 | 180 |  | |
0 commit comments