Skip to content

Commit

Permalink
Use runtime reflection for Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 10, 2020
1 parent a599eaa commit f8512a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(

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

0 comments on commit f8512a7

Please sign in to comment.