Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable26] Fix type in BeforeMessageLoggedEvent #41357

Merged
merged 1 commit into from
Nov 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
}
Loading