Skip to content

Commit 39de56b

Browse files
authored
Merge pull request #105 from LibreSign/chore/bump-dependencies
chore: bump dependencies
2 parents 84f90fc + f2a8b52 commit 39de56b

9 files changed

Lines changed: 700 additions & 451 deletions

File tree

.github/workflows/behat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
strategy:
99
fail-fast: false
1010
matrix:
11-
php-versions: ['8.1', '8.2', '8.3', '8.4']
11+
php-versions: ['8.2', '8.3', '8.4', '8.5']
1212

1313
name: php${{ matrix.php-versions }}
1414

.github/workflows/psalm.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
# do not stop on another job's failure
99
fail-fast: false
1010
matrix:
11-
php-versions: ['8.1', '8.2', '8.3']
11+
php-versions: ['8.2', '8.3', '8.4', '8.5']
1212

1313
name: Psalm check
1414

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,23 +30,23 @@
3030
},
3131
"require": {
3232
"php": ">=8.1",
33-
"guzzlehttp/guzzle": "^7.9",
33+
"guzzlehttp/guzzle": "^7.10",
3434
"phpunit/phpunit": "*",
35-
"behat/behat": "^3.23",
35+
"behat/behat": "^3.29",
3636
"libresign/behat-builtin-extension": "^0.6.3",
3737
"estahn/json-query-wrapper": "*"
3838
},
3939
"require-dev": {
40-
"bamarni/composer-bin-plugin": "^1.8",
41-
"donatj/mock-webserver": "^2.8"
40+
"bamarni/composer-bin-plugin": "^1.9",
41+
"donatj/mock-webserver": "^2.9"
4242
},
4343
"config": {
4444
"allow-plugins": {
4545
"bamarni/composer-bin-plugin": true
4646
},
4747
"optimize-autoloader": true,
4848
"platform": {
49-
"php": "8.1"
49+
"php": "8.2"
5050
}
5151
},
5252
"extra": {

features/bootstrap/FeatureContext.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
require __DIR__ . '/../../vendor/autoload.php';
1414

15-
class FeatureContext extends NextcloudApiContext {
15+
final class FeatureContext extends NextcloudApiContext {
1616
protected MockWebServer $mockServer;
1717
public function __construct(?array $parameters = []) {
1818
parent::__construct($parameters);
@@ -24,6 +24,7 @@ public function __construct(?array $parameters = []) {
2424
/**
2525
* @inheritDoc
2626
*/
27+
#[\Override]
2728
public function setCurrentUser(string $user): void {
2829
parent::setCurrentUser($user);
2930
Assert::assertEquals($this->currentUser, $user);
@@ -32,6 +33,7 @@ public function setCurrentUser(string $user): void {
3233
/**
3334
* @inheritDoc
3435
*/
36+
#[\Override]
3537
public function assureUserExists(string $user): void {
3638
parent::assureUserExists($user);
3739
$lastRequest = $this->getLastREquest();
@@ -57,13 +59,15 @@ private function getLastRequest(): RequestInfo {
5759
* necessary to consider that we haven't Nextcloud installed and mock
5860
* the real path of files.
5961
*/
62+
#[\Override]
6063
public static function findParentDirContainingFile(string $filename): string {
6164
return __DIR__;
6265
}
6366

6467
/**
6568
* @inheritDoc
6669
*/
70+
#[\Override]
6771
public function sendRequest(string $verb, string $url, $body = null, array $headers = [], array $options = []): void {
6872
parent::sendRequest($verb, $url, $body, $headers, $options);
6973
$lastRequest = $this->getLastRequest();
@@ -99,6 +103,7 @@ public function setTheResponseTo(PyStringNode $response): void {
99103
/**
100104
* @inheritDoc
101105
*/
106+
#[\Override]
102107
public function theResponseShouldBeAJsonArrayWithTheFollowingMandatoryValues(TableNode $table): void {
103108
$lastRequest = $this->getLastRequest();
104109
$body = json_encode($lastRequest->getParsedInput());

src/NextcloudApiContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function sendRequest(string $verb, string $url, $body = null, array $head
188188
}
189189
$fullUrl = $this->baseUrl . $url;
190190
$client = new Client();
191-
if (!is_null($this->currentUser)) {
191+
if ($this->currentUser !== '') {
192192
$options = array_merge(
193193
['cookies' => $this->getUserCookieJar($this->currentUser)],
194194
$options

vendor-bin/coding-standard/composer.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
2+
"config": {
3+
"platform": {
4+
"php": "8.2"
5+
},
6+
"sort-packages": true
7+
},
28
"require-dev": {
39
"nextcloud/coding-standard": "1.1.0"
410
}

0 commit comments

Comments
 (0)