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 ffb36bf commit 9133e42Copy full SHA for 9133e42
src/Reflection/ReflectionProvider/ClassBlacklistReflectionProvider.php
@@ -38,7 +38,14 @@ public function __construct(
38
public function hasClass(string $className): bool
39
{
40
if ($this->phpStormStubsSourceStubber->hasClass($className)) {
41
- return false;
+ // 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;
44
+ }
45
+ $reflection = new \ReflectionClass($className);
46
+ if ($reflection->getFileName() === false) {
47
48
49
}
50
51
foreach ($this->patterns as $pattern) {
0 commit comments