1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-28 19:14:04 +01:00

Add missing types to constructor args

This commit is contained in:
Jordi Boggiano
2022-04-24 11:17:17 +02:00
parent 6627c092d8
commit bd5968a567
27 changed files with 52 additions and 31 deletions

View File

@@ -12,6 +12,7 @@
namespace Monolog\Handler;
use Monolog\Level;
use Monolog\LevelName;
use Monolog\LogRecord;
/**
@@ -58,7 +59,7 @@ class ProcessHandler extends AbstractProcessingHandler
* @param string|null $cwd "Current working directory" (CWD) for the process to be executed in.
* @throws \InvalidArgumentException
*/
public function __construct(string $command, $level = Level::Debug, bool $bubble = true, ?string $cwd = null)
public function __construct(string $command, int|string|Level|LevelName $level = Level::Debug, bool $bubble = true, ?string $cwd = null)
{
if ($command === '') {
throw new \InvalidArgumentException('The command argument must be a non-empty string.');