Skip to content

Commit 65b8a40

Browse files
committed
chore(viewer): setup psalm and resolve issues
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
1 parent 38edd19 commit 65b8a40

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

apps/viewer/lib/AppInfo/Application.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ public function __construct() {
2525
parent::__construct(self::APP_ID);
2626
}
2727

28+
#[\Override]
2829
public function register(IRegistrationContext $context): void {
2930
$context->registerEventListener(LoadViewer::class, LoadViewerScript::class);
3031
}
3132

33+
#[\Override]
3234
public function boot(IBootContext $context): void {
3335
}
3436
}

apps/viewer/lib/Listener/LoadViewerScript.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ public function __construct(
3333
$this->previewManager = $previewManager;
3434
}
3535

36+
#[\Override]
3637
public function handle(Event $event): void {
3738
if (!($event instanceof LoadViewer || $event instanceof LoadAdditionalScriptsEvent)) {
3839
return;

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
<directory name="apps/updatenotification"/>
5353
<directory name="apps/user_ldap"/>
5454
<directory name="apps/user_status"/>
55+
<directory name="apps/viewer"/>
5556
<directory name="apps/weather_status"/>
5657
<directory name="apps/webhook_listeners"/>
5758
<directory name="apps/workflowengine"/>

0 commit comments

Comments
 (0)