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 7dada9d commit 6387d31
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 10 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
26 changes: 21 additions & 5 deletions tests/stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@
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 {
Expand All @@ -25,11 +29,23 @@ 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 6387d31

Please sign in to comment.