We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a599eaa commit f8512a7Copy full SHA for f8512a7
1 file changed
src/Reflection/ReflectionProvider/ClassBlacklistReflectionProvider.php
@@ -37,7 +37,7 @@ public function __construct(
37
38
public function hasClass(string $className): bool
39
{
40
- if ($this->phpStormStubsSourceStubber->hasClass($className)) {
+ if ($this->phpStormStubsSourceStubber->hasClass($className) && $className !== \Generator::class) {
41
// check that userland class isn't aliased to the same name as a class from stubs
42
if (!class_exists($className, false)) {
43
return false;
0 commit comments