Skip to content

Commit bb20264

Browse files
committed
Event listener method returns void
1 parent ba0206d commit bb20264

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Reflection/Nette/NetteObjectEventListenerMethodReflection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use PHPStan\Reflection\ClassReflection;
66
use PHPStan\Reflection\MethodReflection;
7-
use PHPStan\Type\NullType;
87
use PHPStan\Type\Type;
8+
use PHPStan\Type\VoidType;
99

1010
class NetteObjectEventListenerMethodReflection implements MethodReflection
1111
{
@@ -67,7 +67,7 @@ public function isPublic(): bool
6767

6868
public function getReturnType(): Type
6969
{
70-
return new NullType();
70+
return new VoidType();
7171
}
7272

7373
}

0 commit comments

Comments
 (0)