Skip to content

Commit

Permalink
Rework
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Dec 30, 2022
1 parent 945e287 commit 9c623c9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Reflection/Annotations/AnnotationMethodReflection.php
Expand Up @@ -11,7 +11,6 @@
use PHPStan\TrinaryLogic;
use PHPStan\Type\Generic\TemplateTypeMap;
use PHPStan\Type\Type;
use function strtolower;

class AnnotationMethodReflection implements ExtendedMethodReflection
{
Expand Down Expand Up @@ -110,10 +109,7 @@ public function getThrowType(): ?Type

public function hasSideEffects(): TrinaryLogic
{
if (
strtolower($this->getName()) !== '__construct'
&& $this->returnType->isVoid()->yes()
) {
if ($this->returnType->isVoid()->yes()) {
return TrinaryLogic::createYes();
}

Expand Down

0 comments on commit 9c623c9

Please sign in to comment.