File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 1111 ],
1212 "require" : {
1313 "php" : " ^7.4 || ^8.0" ,
14- "doctrine/coding-standard" : " ^6 .0"
14+ "doctrine/coding-standard" : " ^7 .0"
1515 },
1616 "require-dev" : {
1717 "roave/security-advisories" : " dev-master"
Original file line number Diff line number Diff line change 33
44namespace Lcobucci ;
55
6+ use function sprintf ;
7+ use const PHP_EOL ;
8+
69/**
710 * @runTestsInSeparateProcesses
811 *
1215 */
1316final class ExampleClassWithNoViolation
1417{
15- /**
16- * @var int
17- */
18- private $ test = 0 ;
18+ private int $ test = 0 ;
1919
2020 /**
2121 * @internal
@@ -59,6 +59,7 @@ final class ExampleClassWithNoViolation
5959 */
6060 public function aMethodWithAllUsefulAnnotations (): void
6161 {
62+ echo PHP_EOL ;
6263 echo $ this ->test ;
6364 }
6465
@@ -83,6 +84,7 @@ public function aMethodWithAllUsefulAnnotations(): void
8384 */
8485 public function sampleForPHPUnitTests (): void
8586 {
87+ echo sprintf ('Testing %d ' , 1 );
8688 echo $ this ->test ;
8789 }
8890}
You can’t perform that action at this time.
0 commit comments