Skip to content

Commit

Permalink
Fix phpstan findings
Browse files Browse the repository at this point in the history
  • Loading branch information
Josef Vrba authored and esler committed Jun 4, 2020
1 parent 85cea73 commit 41e6e17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ parameters:
paths:
- src
- tests
ignoreErrors:
- '#Method IW\\Enum::search\(\) should return static\(IW\\Enum\)\|null but returns IW\\Enum.#'
services:
-
class: IW\PHPStan\Reflection\EnumMethodsReflectionExtension
Expand Down
2 changes: 1 addition & 1 deletion src/PHPStan/Reflection/EnumMethodReflection.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function isInternal() : TrinaryLogic

public function getThrowType() : ?Type
{
null;
return null;
}

public function hasSideEffects() : TrinaryLogic
Expand Down

0 comments on commit 41e6e17

Please sign in to comment.