From ffccecdc91e36f0a05b93367111a40ba565e0dec Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Mon, 19 Oct 2020 14:22:01 +0200 Subject: [PATCH] Cleanup --- .../ReflectionProvider/ClassBlacklistReflectionProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Reflection/ReflectionProvider/ClassBlacklistReflectionProvider.php b/src/Reflection/ReflectionProvider/ClassBlacklistReflectionProvider.php index 5d9fbacf1c..cee68fa9bc 100644 --- a/src/Reflection/ReflectionProvider/ClassBlacklistReflectionProvider.php +++ b/src/Reflection/ReflectionProvider/ClassBlacklistReflectionProvider.php @@ -75,7 +75,7 @@ public function hasClass(string $className): bool private function isClassBlacklisted(string $className): bool { - if ($this->phpStormStubsSourceStubber->hasClass($className) && $className !== \Generator::class) { + if ($this->phpStormStubsSourceStubber->hasClass($className)) { // check that userland class isn't aliased to the same name as a class from stubs if (!class_exists($className, false)) { return true;