Skip to content

Commit f8512a7

Browse files
committed
Use runtime reflection for Generator
1 parent a599eaa commit f8512a7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Reflection/ReflectionProvider/ClassBlacklistReflectionProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(
3737

3838
public function hasClass(string $className): bool
3939
{
40-
if ($this->phpStormStubsSourceStubber->hasClass($className)) {
40+
if ($this->phpStormStubsSourceStubber->hasClass($className) && $className !== \Generator::class) {
4141
// check that userland class isn't aliased to the same name as a class from stubs
4242
if (!class_exists($className, false)) {
4343
return false;

0 commit comments

Comments
 (0)