Skip to content

Commit 33ca0af

Browse files
committed
fix: Add stub for files event to fix psalm error
Signed-off-by: Ferdinand Thiessen <[email protected]>
1 parent 015ca84 commit 33ca0af

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

psalm.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@
4848
</issueHandlers>
4949
<stubs>
5050
<file name="tests/stubs/oc_hooks_emitter.php" />
51+
<file name="tests/stubs/oca_files_event.php" preloadClasses="true"/>
5152
</stubs>
5253
</psalm>

tests/stubs/oca_files_event.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
namespace OCA\Files\Event {
4+
class LoadSidebar extends \OCP\EventDispatcher\Event {
5+
}
6+
}

0 commit comments

Comments
 (0)