Skip to content

Commit

Permalink
chore(psalm): Add assistant event to stub
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Aug 4, 2023
1 parent bac6135 commit a7171b6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
errorBaseline="tests/psalm-baseline.xml"
>
<stubs>
<file name="tests/stub.phpstub" preloadClasses="true"/>
<file name="tests/stub.php" preloadClasses="true"/>
</stubs>
<projectFiles>
<directory name="lib" />
Expand Down
11 changes: 11 additions & 0 deletions tests/stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,14 @@ abstract class SharedStorage implements \OCP\Files\Storage\IStorage {
abstract public function getShare(): \OCP\Share\IShare;
}
}

namespace OCA\TPAssistant\Event {

use OCP\TextProcessing\Task;

abstract class BeforeAssistantNotificationEvent extends \OCP\EventDispatcher\Event {
abstract public function getTask(): Task;
abstract public function setWantsNotification(bool $wantsNotification): void;
abstract public function setNotificationTarget(?string $notificationTarget): void;
}
}

0 comments on commit a7171b6

Please sign in to comment.