Skip to content

Commit eeac789

Browse files
committed
Upgrade to Doctrine CS v7.0
1 parent f45d5f2 commit eeac789

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
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"

tests/ExampleClassWithNoViolation.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
namespace Lcobucci;
55

6+
use function sprintf;
7+
use const PHP_EOL;
8+
69
/**
710
* @runTestsInSeparateProcesses
811
*
@@ -12,10 +15,7 @@
1215
*/
1316
final 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
}

0 commit comments

Comments
 (0)