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 130a4ec commit 5ebcd8b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 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
28 changes: 22 additions & 6 deletions tests/stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +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 {}
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 5ebcd8b

Please sign in to comment.