Skip to content

Commit

Permalink
Merge pull request #568 from nextcloud/dependabot/composer/vimeo/psal…
Browse files Browse the repository at this point in the history
…m-5.1.0

Bump vimeo/psalm from 4.30.0 to 5.1.0
  • Loading branch information
nickvergessen authored Dec 7, 2022
2 parents b0e7c6b + e64a29f commit 9fb1f84
Show file tree
Hide file tree
Showing 8 changed files with 71 additions and 117 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"require-dev": {
"nextcloud/coding-standard": "^1.0.0",
"phpunit/phpunit": "^9.5",
"vimeo/psalm": "^4.3.2",
"vimeo/psalm": "^5.1.0",
"nextcloud/ocp": "dev-master"
},
"autoload-dev": {
Expand Down
161 changes: 53 additions & 108 deletions composer.lock

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

4 changes: 2 additions & 2 deletions lib/BackgroundJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ public function run($argument): void {
return;
}

$guestsWhiteList = $this->config->getAppValue('guests', 'whitelist', null);
$this->enabledForGuestsUsers = $guestsWhiteList !== null && strpos($guestsWhiteList, 'announcementcenter') !== false;
$guestsWhiteList = $this->config->getAppValue('guests', 'whitelist');
$this->enabledForGuestsUsers = strpos($guestsWhiteList, 'announcementcenter') !== false;

$this->createPublicity($announcement, $argument);
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Listener/BeforeTemplateRenderedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
use OCP\EventDispatcher\IEventListener;
use OCP\Util;

/**
* @template-implements IEventListener<Event>
*/
class BeforeTemplateRenderedListener implements IEventListener {
public function handle(Event $event): void {
if (!$event instanceof BeforeTemplateRenderedEvent) {
Expand Down
4 changes: 4 additions & 0 deletions lib/Model/AnnouncementMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;

/**
* @template-extends QBMapper<Announcement>
*/
class AnnouncementMapper extends QBMapper {
public function __construct(IDBConnection $db) {
parent::__construct($db, 'announcements', Announcement::class);
Expand All @@ -55,6 +58,7 @@ public function getById(int $id): Announcement {
* Deletes an entity from the table
* @param Entity $entity the entity that should be deleted
* @return Entity the deleted entity
* @psalm-return Announcement the deleted entity
* @since 14.0.0
*/
public function delete(Entity $entity): Entity {
Expand Down
3 changes: 3 additions & 0 deletions lib/Model/GroupMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;

/**
* @template-extends QBMapper<Group>
*/
class GroupMapper extends QBMapper {
public function __construct(IDBConnection $db) {
parent::__construct($db, 'announcements_map', Group::class);
Expand Down
Loading

0 comments on commit 9fb1f84

Please sign in to comment.