Fix code style and bump to php 7.4

This commit is contained in:
Jaapio
2024-03-12 22:28:53 +01:00
parent 1c6b5465fa
commit c6d49fc451
36 changed files with 181 additions and 137 deletions
+6 -7
View File
@@ -29,21 +29,20 @@ use function wordwrap;
class Serializer
{
/** @var string The string to indent the comment with. */
protected $indentString = ' ';
protected string $indentString = ' ';
/** @var int The number of times the indent string is repeated. */
protected $indent = 0;
protected int $indent = 0;
/** @var bool Whether to indent the first line with the given indent amount and string. */
protected $isFirstLineIndented = true;
protected bool $isFirstLineIndented = true;
/** @var int|null The max length of a line. */
protected $lineLength;
protected ?int $lineLength = null;
/** @var Formatter A custom tag formatter. */
protected $tagFormatter;
/** @var string */
private $lineEnding;
protected Formatter $tagFormatter;
private string $lineEnding;
/**
* Create a Serializer instance.