Skip to content

Commit 47a3c07

Browse files
Ensure all properties have a type
1 parent f7b4ac8 commit 47a3c07

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

Dumper/AbstractDumper.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,13 @@ abstract class AbstractDumper implements DataDumperInterface, DumperInterface
2626
public const DUMP_COMMA_SEPARATOR = 4;
2727
public const DUMP_TRAILING_COMMA = 8;
2828

29+
/** @var callable|resource|string|null */
2930
public static $defaultOutput = 'php://output';
3031

3132
protected $line = '';
33+
/** @var callable|null */
3234
protected $lineDumper;
35+
/** @var resource|null */
3336
protected $outputStream;
3437
protected $decimalPoint = '.';
3538
protected $indentPad = ' ';
@@ -55,9 +58,9 @@ public function __construct($output = null, string $charset = null, int $flags =
5558
/**
5659
* Sets the output destination of the dumps.
5760
*
58-
* @param callable|resource|string $output A line dumper callable, an opened stream or an output path
61+
* @param callable|resource|string|null $output A line dumper callable, an opened stream or an output path
5962
*
60-
* @return callable|resource|string The previous output destination
63+
* @return callable|resource|string|null The previous output destination
6164
*/
6265
public function setOutput($output)
6366
{

Dumper/CliDumper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
class CliDumper extends AbstractDumper
2323
{
2424
public static $defaultColors;
25+
/** @var callable|resource|string|null */
2526
public static $defaultOutput = 'php://stdout';
2627

2728
protected $colors;
@@ -534,7 +535,7 @@ protected function supportsColors(): bool
534535
if ($this->outputStream !== static::$defaultOutput) {
535536
return $this->hasColorSupport($this->outputStream);
536537
}
537-
if (null !== static::$defaultColors) {
538+
if (isset(static::$defaultColors)) {
538539
return static::$defaultColors;
539540
}
540541
if (isset($_SERVER['argv'][1])) {

Dumper/HtmlDumper.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*/
2222
class HtmlDumper extends CliDumper
2323
{
24+
/** @var callable|resource|string|null */
2425
public static $defaultOutput = 'php://output';
2526

2627
protected static $themes = [

0 commit comments

Comments
 (0)