Skip to content

Commit 3e71a02

Browse files
committed
Upgrade coding standard
1 parent 6f74a9d commit 3e71a02

10 files changed

Lines changed: 10 additions & 10 deletions

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"require-dev": {
4141
"ext-xdebug": "*",
42-
"aplus/coding-standard": "^2.1",
42+
"aplus/coding-standard": "^2.8",
4343
"ergebnis/composer-normalize": "^2.25",
4444
"phpmd/phpmd": "^2.13",
4545
"phpstan/phpstan": "^1.9.13"

src/AppTesting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function runCli(string $command, array $env = []) : void
8585
/**
8686
* Simulate an HTTP Request for tests.
8787
*
88-
* @param string|URL $url
88+
* @param URL|string $url
8989
* @param string $method
9090
* @param array<string,string> $headers
9191
* @param string $body

src/Constraints/ResponseBodyContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(string $string)
2727
$this->string = $string;
2828
}
2929

30-
protected function fail(mixed $other, string $description, ComparisonFailure $comparisonFailure = null) : never
30+
protected function fail(mixed $other, string $description, ?ComparisonFailure $comparisonFailure = null) : never
3131
{
3232
$failureDescription = \sprintf(
3333
'Failed asserting that Response Body %s',

src/Constraints/ResponseBodyNotContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(string $string)
2727
$this->string = $string;
2828
}
2929

30-
protected function fail(mixed $other, string $description, ComparisonFailure $comparisonFailure = null) : never
30+
protected function fail(mixed $other, string $description, ?ComparisonFailure $comparisonFailure = null) : never
3131
{
3232
$failureDescription = \sprintf(
3333
'Failed asserting that Response Body %s',

src/Constraints/ResponseContainsHeader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(string $string)
2727
$this->string = $string;
2828
}
2929

30-
protected function fail(mixed $other, string $description, ComparisonFailure $comparisonFailure = null) : never
30+
protected function fail(mixed $other, string $description, ?ComparisonFailure $comparisonFailure = null) : never
3131
{
3232
$failureDescription = \sprintf(
3333
'Failed asserting that Response %s',

src/Constraints/ResponseNotContainsHeader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(string $string)
2727
$this->string = $string;
2828
}
2929

30-
protected function fail(mixed $other, string $description, ComparisonFailure $comparisonFailure = null) : never
30+
protected function fail(mixed $other, string $description, ?ComparisonFailure $comparisonFailure = null) : never
3131
{
3232
$failureDescription = \sprintf(
3333
'Failed asserting that Response %s',

src/Constraints/StderrContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(string $string)
2727
$this->string = $string;
2828
}
2929

30-
protected function fail(mixed $other, string $description, ComparisonFailure $comparisonFailure = null) : never
30+
protected function fail(mixed $other, string $description, ?ComparisonFailure $comparisonFailure = null) : never
3131
{
3232
$failureDescription = \sprintf(
3333
'Failed asserting that STDERR %s',

src/Constraints/StderrNotContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(string $string)
2727
$this->string = $string;
2828
}
2929

30-
protected function fail(mixed $other, string $description, ComparisonFailure $comparisonFailure = null) : never
30+
protected function fail(mixed $other, string $description, ?ComparisonFailure $comparisonFailure = null) : never
3131
{
3232
$failureDescription = \sprintf(
3333
'Failed asserting that STDERR %s',

src/Constraints/StdoutContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(string $string)
2727
$this->string = $string;
2828
}
2929

30-
protected function fail(mixed $other, string $description, ComparisonFailure $comparisonFailure = null) : never
30+
protected function fail(mixed $other, string $description, ?ComparisonFailure $comparisonFailure = null) : never
3131
{
3232
$failureDescription = \sprintf(
3333
'Failed asserting that STDOUT %s',

src/Constraints/StdoutNotContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function __construct(string $string)
2727
$this->string = $string;
2828
}
2929

30-
protected function fail(mixed $other, string $description, ComparisonFailure $comparisonFailure = null) : never
30+
protected function fail(mixed $other, string $description, ?ComparisonFailure $comparisonFailure = null) : never
3131
{
3232
$failureDescription = \sprintf(
3333
'Failed asserting that STDOUT %s',

0 commit comments

Comments
 (0)