Skip to content

Commit ba277c3

Browse files
committed
chore: add missing Override attributes flagged by psalm
Signed-off-by: Micke Nordin <kano@sunet.se>
1 parent adbd741 commit ba277c3

7 files changed

Lines changed: 10 additions & 0 deletions

File tree

apps/dav/lib/BackgroundJob/CleanupExpiredOcmTokensJob.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public function __construct(
3030
$this->setTimeSensitivity(self::TIME_INSENSITIVE);
3131
}
3232

33+
#[\Override]
3334
protected function run($argument): void {
3435
$this->mapper->deleteExpired($this->time->getTime());
3536
}

apps/dav/lib/Migration/Version1037Date20260306120000.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#[CreateTable(table: 'dav_ocm_token_map', description: 'Maps OCM access tokens to their originating refresh tokens')]
2020
class Version1037Date20260306120000 extends SimpleMigrationStep {
21+
#[\Override]
2122
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
2223
/** @var ISchemaWrapper $schema */
2324
$schema = $schemaClosure();

apps/federatedfilesharing/lib/Migration/Version1012Date20260306120000.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@
3636
* oc_authtoken are silently repaired.
3737
*/
3838
class Version1012Date20260306120000 extends SimpleMigrationStep {
39+
#[\Override]
3940
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ?ISchemaWrapper {
4041
return null;
4142
}
4243

44+
#[\Override]
4345
public function postSchemaChange(IOutput $output, Closure $schemaClosure, array $options): void {
4446
$db = Server::get(IDBConnection::class);
4547
$tokenProvider = Server::get(PublicKeyTokenProvider::class);

apps/files_sharing/lib/External/Storage.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ public function __construct($options) {
151151
*
152152
* @return bool True if token was refreshed (or reused from DB) successfully
153153
*/
154+
#[\Override]
154155
protected function refreshBearerToken(): bool {
155156
$now = time();
156157

lib/private/Authentication/Token/PublicKeyToken.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ public function getRemember(): int {
204204
return parent::getRemember();
205205
}
206206

207+
#[\Override]
207208
public function getType(): int {
208209
return $this->getter('type');
209210
}

lib/private/OCM/Model/OCMProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ public function getEndPoint(): string {
125125
*
126126
* @return $this
127127
*/
128+
#[\Override]
128129
public function setTokenEndPoint(string $endPoint): static {
129130
$this->tokenEndPoint = $endPoint;
130131

@@ -134,6 +135,7 @@ public function setTokenEndPoint(string $endPoint): static {
134135
/**
135136
* @return string
136137
*/
138+
#[\Override]
137139
public function getTokenEndPoint(): string {
138140
if (in_array('exchange-token', $this->capabilities)) {
139141
return $this->tokenEndPoint;

lib/public/OCM/ICapabilityAwareOCMProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ interface ICapabilityAwareOCMProvider extends IOCMProvider {
2121
* @return string
2222
* @since 32.0.0
2323
*/
24+
#[\Override]
2425
public function getTokenEndPoint(): string;
2526

2627
/**
@@ -31,5 +32,6 @@ public function getTokenEndPoint(): string;
3132
* @return $this
3233
* @since 32.0.0
3334
*/
35+
#[\Override]
3436
public function setTokenEndPoint(string $endPoint): static;
3537
}

0 commit comments

Comments
 (0)