1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-14 00:54:01 +02:00

Update return types

This commit is contained in:
Jordi Boggiano
2018-11-19 14:40:44 +01:00
parent 6bb347c040
commit 1c5b0b8ff4
13 changed files with 63 additions and 82 deletions

View File

@@ -136,7 +136,7 @@ class TestChromePHPHandler extends ChromePHPHandler
{
protected $headers = [];
public static function resetStatic()
public static function resetStatic(): void
{
self::$initialized = false;
self::$overflowed = false;
@@ -144,12 +144,12 @@ class TestChromePHPHandler extends ChromePHPHandler
self::$json['rows'] = [];
}
protected function sendHeader($header, $content)
protected function sendHeader(string $header, string $content): void
{
$this->headers[$header] = $content;
}
public function getHeaders()
public function getHeaders(): array
{
return $this->headers;
}

View File

@@ -77,19 +77,19 @@ class TestFirePHPHandler extends FirePHPHandler
{
protected $headers = [];
public static function resetStatic()
public static function resetStatic(): void
{
self::$initialized = false;
self::$sendHeaders = true;
self::$messageIndex = 1;
}
protected function sendHeader($header, $content)
protected function sendHeader(string $header, string $content): void
{
$this->headers[$header] = $content;
}
public function getHeaders()
public function getHeaders(): array
{
return $this->headers;
}