Skip to content

Commit 1b213f7

Browse files
committed
chore: update to latest Psalm version
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 590d99d commit 1b213f7

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

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());

0 commit comments

Comments
 (0)