Skip to content

Commit ba0206d

Browse files
committed
Improved compatibility with PHPStan 0.6
1 parent 991dbf2 commit ba0206d

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Reflection/Nette/HtmlMethodReflection.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public function getDeclaringClass(): ClassReflection
2828
return $this->declaringClass;
2929
}
3030

31+
public function getPrototype(): MethodReflection
32+
{
33+
return $this;
34+
}
35+
3136
public function isStatic(): bool
3237
{
3338
return false;

src/Reflection/Nette/NetteObjectEventListenerMethodReflection.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ public function getDeclaringClass(): ClassReflection
3232
return $this->declaringClass;
3333
}
3434

35+
public function getPrototype(): MethodReflection
36+
{
37+
return $this;
38+
}
39+
3540
public function isStatic(): bool
3641
{
3742
return false;

0 commit comments

Comments
 (0)