Skip to content

Commit 42baf28

Browse files
authored
Merge pull request #22 from keboola/pepa/PAT-514_bump
Bump versions
2 parents 153e02e + c3a90e5 commit 42baf28

23 files changed

Lines changed: 71 additions & 76 deletions

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM php:7-cli
1+
FROM php:8.2-cli
22

33
ENV COMPOSER_ALLOW_SUPERUSER 1
44

@@ -13,7 +13,7 @@ COPY docker/php.ini /usr/local/etc/php/php.ini
1313

1414
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
1515

16-
RUN pecl install xdebug-3.1.6 \
16+
RUN pecl install xdebug \
1717
&& docker-php-ext-enable xdebug
1818

1919
COPY composer.* ./

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@
2525
}
2626
},
2727
"require": {
28-
"php": "^7.4|^8.0",
28+
"php": "^8.2",
2929
"ext-json": "*",
3030
"guzzlehttp/guzzle": "^6.3|^7.2",
31-
"myclabs/php-enum": "^1.8",
32-
"psr/log": "^1.1",
33-
"symfony/validator": "^5.2|^6.0"
31+
"psr/log": "^2|^3",
32+
"symfony/validator": "^6.4|^7.0"
3433
},
3534
"require-dev": {
3635
"infection/infection": "^0.26",
3736
"keboola/coding-standard": ">=14.0",
37+
"monolog/monolog": "^3.9",
3838
"phpstan/phpstan": "^1.8",
3939
"phpstan/phpstan-phpunit": "^1.1",
4040
"phpunit/phpunit": "^9.5",

phpstan.neon

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
parameters:
22
level: max
3-
checkMissingIterableValueType: false
43
paths:
54
- src
65
- tests
76
stubFiles:
87
- tests/stubs/Guzzle.stub
98
ignoreErrors:
10-
9+
- identifier: missingType.iterableValue
1110
includes:
1211
- vendor/phpstan/phpstan-phpunit/extension.neon

src/Client.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ abstract class Client
4242
public function __construct(
4343
string $baseUrl,
4444
?string $token,
45-
array $options
45+
array $options,
4646
) {
4747
$validator = Validation::createValidator();
4848
$errors = $validator->validate($baseUrl, [new Url()]);
@@ -79,10 +79,10 @@ private function createDefaultDecider(int $maxRetries, LoggerInterface $logger):
7979
$retries,
8080
RequestInterface $request,
8181
?ResponseInterface $response = null,
82-
?Throwable $error = null
82+
?Throwable $error = null,
8383
) use (
8484
$maxRetries,
85-
$logger
85+
$logger,
8686
) {
8787
if ($retries >= $maxRetries) {
8888
$logger->notice(sprintf('We have tried this %d times. Giving up.', $maxRetries));

src/Requests/PostEvent/JobData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function __construct(
2626
string $componentId,
2727
string $componentName,
2828
?string $configurationId,
29-
?string $configurationName
29+
?string $configurationName,
3030
) {
3131
$this->jobId = $jobId;
3232
$this->jobUrl = $jobUrl;

src/Requests/PostEvent/JobFailedEventData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(
1919
string $projectName,
2020
string $branchId,
2121
string $errorMessage,
22-
JobData $jobData
22+
JobData $jobData,
2323
) {
2424
$this->projectId = $projectId;
2525
$this->projectName = $projectName;

src/Requests/PostEvent/JobProcessingLongEventData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(
2323
float $durationOvertimePercentage,
2424
float $averageDuration,
2525
float $currentDuration,
26-
JobData $jobData
26+
JobData $jobData,
2727
) {
2828
$this->projectId = $projectId;
2929
$this->projectName = $projectName;

src/Requests/PostEvent/JobSucceededEventData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function __construct(
1717
string $projectId,
1818
string $projectName,
1919
string $branchId,
20-
JobData $jobData
20+
JobData $jobData,
2121
) {
2222
$this->projectId = $projectId;
2323
$this->projectName = $projectName;

src/Requests/PostEvent/JobSucceededWithWarningEventData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function __construct(
1919
string $projectName,
2020
string $branchId,
2121
string $errorMessage,
22-
JobData $jobData
22+
JobData $jobData,
2323
) {
2424
$this->projectId = $projectId;
2525
$this->projectName = $projectName;

src/Requests/PostEvent/PhaseJobFailedEventData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(
2323
string $phaseName,
2424
string $phaseId,
2525
string $errorMessage,
26-
JobData $jobData
26+
JobData $jobData,
2727
) {
2828
$this->projectId = $projectId;
2929
$this->projectName = $projectName;

0 commit comments

Comments
 (0)