Skip to content

Commit b01155e

Browse files
committed
Improved compatibility with PHPStan 0.8
1 parent 01a3b7a commit b01155e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

src/Reflection/Nette/HtmlPropertyReflection.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,14 @@ public function getType(): Type
4343
return new MixedType();
4444
}
4545

46+
public function isReadable(): bool
47+
{
48+
return true;
49+
}
50+
51+
public function isWritable(): bool
52+
{
53+
return true;
54+
}
55+
4656
}

src/Reflection/Nette/NetteObjectPropertyReflection.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,14 @@ public function getType(): Type
4646
return $this->type;
4747
}
4848

49+
public function isReadable(): bool
50+
{
51+
return true;
52+
}
53+
54+
public function isWritable(): bool
55+
{
56+
return true;
57+
}
58+
4959
}

0 commit comments

Comments
 (0)