Skip to content

Commit e80e894

Browse files
janedbalondrejmirtes
authored andcommitted
Drop unused ResolvedPropertyReflection::getDeclaringTrait
1 parent 6e27754 commit e80e894

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Reflection/ResolvedPropertyReflection.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace PHPStan\Reflection;
44

5-
use PHPStan\Reflection\Php\PhpPropertyReflection;
65
use PHPStan\TrinaryLogic;
76
use PHPStan\Type\Generic\TemplateTypeHelper;
87
use PHPStan\Type\Generic\TemplateTypeMap;
@@ -40,15 +39,6 @@ public function getDeclaringClass(): ClassReflection
4039
return $this->reflection->getDeclaringClass();
4140
}
4241

43-
public function getDeclaringTrait(): ?ClassReflection
44-
{
45-
if ($this->reflection instanceof PhpPropertyReflection) {
46-
return $this->reflection->getDeclaringTrait();
47-
}
48-
49-
return null;
50-
}
51-
5242
public function isStatic(): bool
5343
{
5444
return $this->reflection->isStatic();

0 commit comments

Comments
 (0)