Skip to content

Commit

Permalink
fix: Add stub for files event to fix psalm error
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Nov 5, 2023
1 parent 015ca84 commit 33ca0af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@
</issueHandlers>
<stubs>
<file name="tests/stubs/oc_hooks_emitter.php" />
<file name="tests/stubs/oca_files_event.php" preloadClasses="true"/>
</stubs>
</psalm>
6 changes: 6 additions & 0 deletions tests/stubs/oca_files_event.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

namespace OCA\Files\Event {
class LoadSidebar extends \OCP\EventDispatcher\Event {
}
}

0 comments on commit 33ca0af

Please sign in to comment.