File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
tests/PHPStan/Rules/Constants/data Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ public function returnFoo2(): string
48
48
class AnotherClass {
49
49
public function myFoo (): string
50
50
{
51
- return REMEMBERED_FOO ; // should error, because this file cannot share the __constructor() scope with HelloWorld-class above.
51
+ return REMEMBERED_FOO ; // should error, because this class should not share the __constructor() scope with HelloWorld-class above.
52
52
}
53
53
}
54
54
@@ -62,7 +62,7 @@ public function __construct()
62
62
63
63
public function myFoo (): void
64
64
{
65
- echo REMEMBERED_FOO ; // should error, because this file cannot share the __constructor() scope with HelloWorld-class above.
65
+ echo REMEMBERED_FOO ; // should error, because this class should not share the __constructor() scope with HelloWorld-class above.
66
66
67
67
echo ANOTHER_REMEMBERED_FOO ;
68
68
}
You can’t perform that action at this time.
0 commit comments