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 9, 2023
1 parent 017b657 commit 473b914
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
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
30 changes: 25 additions & 5 deletions tests/stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,49 @@
declare(strict_types=1);

namespace OC\Hooks {
class Emitter {}
class Emitter {
}
}

namespace OC\AppFramework\OCS {
class BaseResponse {}
class BaseResponse {
}
}

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

namespace OCA\Viewer\Event {
class LoadViewer extends \OCP\EventDispatcher\Event {}
class LoadViewer extends \OCP\EventDispatcher\Event {
}
}

namespace OCA\Files_Sharing\Event {
class BeforeTemplateRenderedEvent extends \OCP\EventDispatcher\Event {
abstract class BeforeTemplateRenderedEvent extends \OCP\EventDispatcher\Event {
abstract public function getShare(): \OCP\Share\IShare;
}
}

namespace OC\User {
class NoUserException extends \Exception {}
class NoUserException extends \Exception {
}
}

namespace OCA\Files_Sharing {
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 473b914

Please sign in to comment.