We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e56291f commit 31b9247Copy full SHA for 31b9247
tests/Rule/data/EnforceReadonlyPublicPropertyRule/code-84.php
@@ -50,3 +50,10 @@ interface MyInterface {
50
public string $key { get; }
51
}
52
53
+class ImplementingClass implements MyInterface {
54
+ public string $key; // error: Public property `key` not marked as readonly.
55
+}
56
+
57
+class ImplementingClass2 implements MyInterface {
58
+ public readonly string $key;
59
0 commit comments