Skip to content

Commit

Permalink
fix(psalm): Adjust typing for Server
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Nov 11, 2024
1 parent 4efb5ac commit 5cf07bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/Controller/APIController.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ public function generateNotificationV3(

try {
if (!empty($subjectParameters)) {
/** @psalm-var array<non-empty-string, array<non-empty-string, string>> $subjectParameters */
$this->richValidator->validate($subject, $subjectParameters);
}
if ($message !== '' && !empty($messageParameters)) {
/** @psalm-var array<non-empty-string, array<non-empty-string, string>> $messageParameters */
$this->richValidator->validate($message, $messageParameters);
}
$notification->setApp('admin_notifications')
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/SettingsMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*
* @method Settings mapRowToEntity(array $row)
* @method Settings findEntity(IQueryBuilder $query)
* @method Settings[] findEntities(IQueryBuilder $query)
* @method list<Settings> findEntities(IQueryBuilder $query)
*/
class SettingsMapper extends QBMapper {
public function __construct(IDBConnection $db) {
Expand Down

0 comments on commit 5cf07bd

Please sign in to comment.