update patch 1
This commit is contained in:
+5
-4
@@ -36,7 +36,6 @@ abstract class AbstractDumper implements DataDumperInterface, DumperInterface
|
||||
protected $outputStream;
|
||||
protected string $decimalPoint = '.';
|
||||
protected string $indentPad = ' ';
|
||||
protected int $flags;
|
||||
|
||||
private string $charset = '';
|
||||
|
||||
@@ -45,9 +44,11 @@ abstract class AbstractDumper implements DataDumperInterface, DumperInterface
|
||||
* @param string|null $charset The default character encoding to use for non-UTF8 strings
|
||||
* @param int $flags A bit field of static::DUMP_* constants to fine tune dumps representation
|
||||
*/
|
||||
public function __construct($output = null, ?string $charset = null, int $flags = 0)
|
||||
{
|
||||
$this->flags = $flags;
|
||||
public function __construct(
|
||||
$output = null,
|
||||
?string $charset = null,
|
||||
protected int $flags = 0,
|
||||
) {
|
||||
$this->setCharset($charset ?: \ini_get('php.output_encoding') ?: \ini_get('default_charset') ?: 'UTF-8');
|
||||
$this->setOutput($output ?: static::$defaultOutput);
|
||||
if (!$output && \is_string(static::$defaultOutput)) {
|
||||
|
||||
Reference in New Issue
Block a user