Skip to content

Commit

Permalink
Don't use PhpStorm stubs for Ds\\ extension
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jun 14, 2020
1 parent 781016e commit 13d0f3d
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) && $className !== \Generator::class) {
if ($this->phpStormStubsSourceStubber->hasClass($className) && $className !== \Generator::class && strpos($className, 'Ds\\') !== 0) {
// 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 13d0f3d

Please sign in to comment.