Skip to content

Commit

Permalink
Merge pull request #41357 from nextcloud/fix/before-log-event
Browse files Browse the repository at this point in the history
[stable26] Fix type in BeforeMessageLoggedEvent
  • Loading branch information
blizzz authored Nov 9, 2023
2 parents 412022b + 608da34 commit 3d72026
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions lib/public/Log/BeforeMessageLoggedEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
class BeforeMessageLoggedEvent extends Event {
private int $level;
private string $app;
private $message;
private array $message;

/**
* @since 26.0.8
*/
public function __construct(string $app, int $level, $message) {
public function __construct(string $app, int $level, array $message) {
$this->level = $level;
$this->app = $app;
$this->message = $message;
Expand All @@ -54,7 +54,6 @@ public function getLevel(): int {
return $this->level;
}


/**
* Get the app context of the log item
*
Expand All @@ -65,14 +64,13 @@ public function getApp(): string {
return $this->app;
}


/**
* Get the message of the log item
*
* @return string
* @return array
* @since 26.0.8
*/
public function getMessage(): string {
public function getMessage(): array {
return $this->message;
}
}

0 comments on commit 3d72026

Please sign in to comment.