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
4848class 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 }
You can’t perform that action at this time.
0 commit comments