Skip to content
This repository was archived by the owner on Jul 6, 2024. It is now read-only.

Commit 52bceaa

Browse files
author
Dominik Zogg
committed
vendor upgrade
1 parent f395f85 commit 52bceaa

13 files changed

+61
-34
lines changed

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
],
1212
"require": {
1313
"php": "^7.2",
14-
"chubbyphp/chubbyphp-deserialization": "^2.15",
15-
"chubbyphp/chubbyphp-negotiation": "^1.5",
16-
"chubbyphp/chubbyphp-serialization": "^2.12",
14+
"chubbyphp/chubbyphp-deserialization": "^2.15.2",
15+
"chubbyphp/chubbyphp-negotiation": "^1.5.1",
16+
"chubbyphp/chubbyphp-serialization": "^2.12.2",
1717
"psr/http-factory": "^1.0.1",
1818
"psr/http-message": "^1.0.1",
1919
"psr/http-server-middleware": "^1.0.1"
@@ -22,14 +22,14 @@
2222
"chubbyphp/chubbyphp-container": "^1.0",
2323
"chubbyphp/chubbyphp-mock": "^1.4.2",
2424
"friendsofphp/php-cs-fixer": "^2.16.1",
25-
"infection/infection": "^0.14.3",
26-
"mavimo/phpstan-junit": "^0.2.3",
27-
"nunomaduro/phpinsights": "^1.11",
25+
"infection/infection": "^0.15",
26+
"mavimo/phpstan-junit": "^0.3",
27+
"nunomaduro/phpinsights": "^1.11.1",
2828
"php-coveralls/php-coveralls": "^2.2",
2929
"phploc/phploc": "^5.0",
3030
"phpstan/extension-installer": "^1.0.3",
31-
"phpstan/phpstan": "^0.11.19",
32-
"phpunit/phpunit": "^8.4.3",
31+
"phpstan/phpstan": "^0.12.3",
32+
"phpunit/phpunit": "^8.5.1",
3333
"pimple/pimple": "^3.2.3"
3434
},
3535
"autoload": {
@@ -61,10 +61,10 @@
6161
"test:cs": "mkdir -p build && vendor/bin/php-cs-fixer fix --dry-run --stop-on-violation --cache-file=build/phpcs.cache",
6262
"test:infection": "vendor/bin/infection --threads=$(nproc) --min-msi=100 --verbose --coverage=build/phpunit",
6363
"test:insights": "mkdir -p build && bash -c 'vendor/bin/phpinsights analyse -v --no-interaction --min-quality=94 --disable-security-check | tee build/phpinsights.log; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
64-
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/phpunit.result.cache",
64+
"test:integration": "vendor/bin/phpunit --testsuite=Integration --cache-result-file=build/phpunit/result.cache",
6565
"test:lint": "mkdir -p build && find src tests -name '*.php' -print0 | xargs -0 -n1 -P$(nproc) php -l | tee build/phplint.log",
6666
"test:loc": "mkdir -p build && vendor/bin/phploc src --verbose | tee build/phploc.log",
6767
"test:static-analysis": "mkdir -p build && bash -c 'vendor/bin/phpstan analyse src --no-progress --level=7 --error-format=junit | tee build/phpstan.junit.xml; if [ ${PIPESTATUS[0]} -ne \"0\" ]; then exit 1; fi'",
68-
"test:unit": "phpdbg -qrr vendor/bin/phpunit --testsuite=Unit --coverage-text --coverage-clover=build/phpunit/phpunit.clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/phpunit.junit.xml --cache-result-file=build/phpunit/phpunit.result.cache"
68+
"test:unit": "phpdbg -qrr vendor/bin/phpunit --testsuite=Unit --coverage-text --coverage-clover=build/phpunit/clover.xml --coverage-html=build/phpunit/coverage-html --coverage-xml=build/phpunit/coverage-xml --log-junit=build/phpunit/junit.xml --cache-result-file=build/phpunit/result.cache"
6969
}
7070
}

src/ApiProblem/AbstractApiProblem.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ public function getInstance(): ?string
7070
return $this->instance;
7171
}
7272

73+
/**
74+
* @return array<string, string>
75+
*/
7376
public function getHeaders(): array
7477
{
7578
return [];

src/ApiProblem/ApiProblemInterface.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,8 @@ public function getDetail(): ?string;
1616

1717
public function getInstance(): ?string;
1818

19+
/**
20+
* @return array<string, string>
21+
*/
1922
public function getHeaders(): array;
2023
}

src/ApiProblem/ClientError/BadRequest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@
99
final class BadRequest extends AbstractApiProblem
1010
{
1111
/**
12-
* @var array[]
12+
* @var array<int, array>
1313
*/
1414
private $invalidParameters = [];
1515

16+
/**
17+
* @param array<int, array> $invalidParameters
18+
*/
1619
public function __construct(array $invalidParameters, string $detail = null, string $instance = null)
1720
{
1821
parent::__construct(
@@ -26,6 +29,9 @@ public function __construct(array $invalidParameters, string $detail = null, str
2629
$this->invalidParameters = $invalidParameters;
2730
}
2831

32+
/**
33+
* @return array<int, array>
34+
*/
2935
public function getInvalidParameters(): array
3036
{
3137
return $this->invalidParameters;

src/ApiProblem/ClientError/ExpectationFailed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
final class ExpectationFailed extends AbstractApiProblem
1010
{
1111
/**
12-
* @var string[]
12+
* @var array<int, string>
1313
*/
1414
private $failedExpectations = [];
1515

1616
/**
17-
* @param string[] $failedExpectations
17+
* @param array<int, string> $failedExpectations
1818
*/
1919
public function __construct(array $failedExpectations, string $detail = null, string $instance = null)
2020
{
@@ -30,7 +30,7 @@ public function __construct(array $failedExpectations, string $detail = null, st
3030
}
3131

3232
/**
33-
* @return string[]
33+
* @return array<int, string>
3434
*/
3535
public function getFailedExpectations(): array
3636
{

src/ApiProblem/ClientError/MethodNotAllowed.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ final class MethodNotAllowed extends AbstractApiProblem
1414
private $method;
1515

1616
/**
17-
* @var string[]
17+
* @var array<int, string>
1818
*/
1919
private $allowedMethods = [];
2020

2121
/**
22-
* @param string $method,
23-
* @param string[] $allowedMethods
22+
* @param string $method,
23+
* @param array<int, string> $allowedMethods
2424
*/
2525
public function __construct(string $method, array $allowedMethods, string $detail = null, string $instance = null)
2626
{
@@ -36,6 +36,9 @@ public function __construct(string $method, array $allowedMethods, string $detai
3636
$this->allowedMethods = $allowedMethods;
3737
}
3838

39+
/**
40+
* @return array<string, string>
41+
*/
3942
public function getHeaders(): array
4043
{
4144
return ['Allow' => implode(',', $this->allowedMethods)];
@@ -47,7 +50,7 @@ public function getMethod(): string
4750
}
4851

4952
/**
50-
* @return string[]
53+
* @return array<int, string>
5154
*/
5255
public function getAllowedMethods(): array
5356
{

src/ApiProblem/ClientError/NotAcceptable.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ final class NotAcceptable extends AbstractApiProblem
1414
private $accept;
1515

1616
/**
17-
* @var string[]
17+
* @var array<int, string>
1818
*/
1919
private $acceptables = [];
2020

2121
/**
22-
* @param string[] $acceptables
22+
* @param array<int, string> $acceptables
2323
*/
2424
public function __construct(
2525
string $accept,
@@ -45,7 +45,7 @@ public function getAccept(): string
4545
}
4646

4747
/**
48-
* @return string[]
48+
* @return array<int, string>
4949
*/
5050
public function getAcceptables(): array
5151
{

src/ApiProblem/ClientError/PaymentRequired.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
final class PaymentRequired extends AbstractApiProblem
1010
{
1111
/**
12-
* @var string[]
12+
* @var array<int, string>
1313
*/
1414
private $paymentTypes = [];
1515

1616
/**
17-
* @param string[] $paymentTypes
17+
* @param array<int, string> $paymentTypes
1818
*/
1919
public function __construct(array $paymentTypes, string $detail = null, string $instance = null)
2020
{
@@ -30,7 +30,7 @@ public function __construct(array $paymentTypes, string $detail = null, string $
3030
}
3131

3232
/**
33-
* @return string[]
33+
* @return array<int, string>
3434
*/
3535
public function getPaymentTypes(): array
3636
{

src/ApiProblem/ClientError/PreconditionFailed.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
final class PreconditionFailed extends AbstractApiProblem
1010
{
1111
/**
12-
* @var string[]
12+
* @var array<int, string>
1313
*/
1414
private $failedPreconditions = [];
1515

1616
/**
17-
* @param string[] $failedPreconditions
17+
* @param array<int, string> $failedPreconditions
1818
*/
1919
public function __construct(array $failedPreconditions, string $detail = null, string $instance = null)
2020
{
@@ -30,7 +30,7 @@ public function __construct(array $failedPreconditions, string $detail = null, s
3030
}
3131

3232
/**
33-
* @return string[]
33+
* @return array<int, string>
3434
*/
3535
public function getFailedPreconditions(): array
3636
{

src/ApiProblem/ClientError/Unauthorized.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ final class Unauthorized extends AbstractApiProblem
1414
private $authorization;
1515

1616
/**
17-
* @var string[]
17+
* @var array<int, string>
1818
*/
1919
private $authorizationTypes = [];
2020

2121
/**
22-
* @param string[] $authorizationTypes
22+
* @param array<int, string> $authorizationTypes
2323
*/
2424
public function __construct(
2525
string $authorization,
@@ -39,6 +39,9 @@ public function __construct(
3939
$this->authorizationTypes = $authorizationTypes;
4040
}
4141

42+
/**
43+
* @return array<string, string>
44+
*/
4245
public function getHeaders(): array
4346
{
4447
return ['WWW-Authenticate' => implode(',', $this->authorizationTypes)];
@@ -50,7 +53,7 @@ public function getAuthorization(): string
5053
}
5154

5255
/**
53-
* @return string[]
56+
* @return array<int, string>
5457
*/
5558
public function getAuthorizationTypes(): array
5659
{

0 commit comments

Comments
 (0)