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

Fix ErrorLogHandler type hint: $messageType accepts only SAPI and OS #1933

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions src/Monolog/Handler/ErrorLogHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ class ErrorLogHandler extends AbstractProcessingHandler
public const OPERATING_SYSTEM = 0;
public const SAPI = 4;

/** @var 0|1|3|4 */
/** @var 0|4 */
protected int $messageType;
protected bool $expandNewlines;

/**
* @param 0|1|3|4 $messageType Says where the error should go.
* @param 0|4 $messageType Says where the error should go.
* @param bool $expandNewlines If set to true, newlines in the message will be expanded to be take multiple log entries
*
* @throws \InvalidArgumentException If an unsupported message type is set
Expand Down
Loading