Skip to content

Commit 6628049

Browse files
committed
more precise comment
1 parent d775762 commit 6628049

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PHPStan/Rules/Constants/data/remembered-constructor-scope.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function returnFoo2(): string
4848
class AnotherClass {
4949
public function myFoo(): string
5050
{
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.
5252
}
5353
}
5454

@@ -62,7 +62,7 @@ public function __construct()
6262

6363
public function myFoo(): void
6464
{
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.
6666

6767
echo ANOTHER_REMEMBERED_FOO;
6868
}

0 commit comments

Comments
 (0)