fixes and corrections
Signed-off-by: dartcafe <github@dartcafe.de>
This commit is contained in:
Родитель
d64f9ce270
Коммит
f4d87bbc2d
|
@ -177,7 +177,7 @@ class Option extends Entity implements JsonSerializable {
|
|||
$this->setOwner($userId);
|
||||
}
|
||||
|
||||
// used for 1.9.0-beta1 installtions
|
||||
// used for 1.9.0-beta1 installations
|
||||
public function getOwner() : string {
|
||||
if ($this->owner === 'disallow' || $this->owner === null) {
|
||||
return '';
|
||||
|
|
|
@ -271,6 +271,16 @@ class Poll extends Entity implements JsonSerializable {
|
|||
return $this->getId();
|
||||
}
|
||||
|
||||
// alias of getOwner()
|
||||
public function getUserId() : string {
|
||||
return $this->getOwner();
|
||||
}
|
||||
|
||||
// alias of setOwner($value)
|
||||
public function setUserId(string $userId) : void {
|
||||
$this->setOwner($userId);
|
||||
}
|
||||
|
||||
public function getProposalsExpired(): bool {
|
||||
return (
|
||||
$this->getProposalsExpire() > 0
|
||||
|
|
|
@ -39,7 +39,7 @@ abstract class Container {
|
|||
}
|
||||
|
||||
public static function queryClass(string $class) {
|
||||
return self::getContainer()->query($class);
|
||||
return self::getContainer()->get($class);
|
||||
}
|
||||
|
||||
public static function queryPoll(int $pollId) : Poll {
|
||||
|
|
|
@ -93,7 +93,7 @@ class ResourceProvider implements IProvider {
|
|||
return true;
|
||||
}
|
||||
|
||||
public function invalidateAccessCache($pollId = null) {
|
||||
public function invalidateAccessCache($pollId = null): void {
|
||||
if ($pollId !== null) {
|
||||
$resource = $this->resourceManager->getResourceForUser(self::RESOURCE_TYPE, (string)$pollId, null);
|
||||
$this->resourceManager->invalidateAccessCacheForResource($resource);
|
||||
|
|
|
@ -28,6 +28,12 @@
|
|||
<code>registerEventListener</code>
|
||||
</InvalidArgument>
|
||||
</file>
|
||||
<file src="lib/Db/Preferences.php">
|
||||
<UndefinedClass occurrences="2">
|
||||
<code>BackgroundService</code>
|
||||
<code>BackgroundService</code>
|
||||
</UndefinedClass>
|
||||
</file>
|
||||
<file src="lib/Listener/BaseListener.php">
|
||||
<UndefinedMethod occurrences="10">
|
||||
<code>getActivityId</code>
|
||||
|
|
Загрузка…
Ссылка в новой задаче