update patch 1

This commit is contained in:
fiqhpratama
2024-12-02 01:18:34 +07:00
parent 453d9bb470
commit 25026b0a85
3380 changed files with 103529 additions and 363623 deletions
+5 -4
View File
@@ -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)) {