@@ -33,17 +33,18 @@ class Serializer
33
33
/** @var bool Whether to indent the first line. */
34
34
protected $ isFirstLineIndented = true ;
35
35
36
- /** @var int The max length of a line. */
36
+ /** @var int|null The max length of a line. */
37
37
protected $ lineLength = null ;
38
38
39
39
/**
40
40
* Create a Serializer instance.
41
41
*
42
- * @param int $indent The number of times the indent string is
42
+ * @param int $indent The number of times the indent string is
43
43
* repeated.
44
- * @param string $indentString The string to indent the comment with.
45
- * @param bool $indentFirstLine Whether to indent the first line.
46
- * @param int $lineLength The max length of a line.
44
+ * @param string $indentString The string to indent the comment with.
45
+ * @param bool $indentFirstLine Whether to indent the first line.
46
+ * @param int|null $lineLength The max length of a line or NULL to
47
+ * disable line wrapping.
47
48
*/
48
49
public function __construct (
49
50
$ indent = 0 ,
@@ -135,7 +136,7 @@ public function isFirstLineIndented()
135
136
* Sets the length of each line in the serialization. Content will be
136
137
* wrapped within this limit.
137
138
*
138
- * @param int $lineLength The length of each line. NULL to disable line
139
+ * @param int|null $lineLength The length of each line. NULL to disable line
139
140
* wrapping altogether.
140
141
*
141
142
* @return $this This serializer object.
@@ -149,7 +150,8 @@ public function setLineLength($lineLength)
149
150
/**
150
151
* Gets the line length.
151
152
*
152
- * @return int The length of each line or NULL if line wrapping is disabled.
153
+ * @return int|null The length of each line or NULL if line wrapping is
154
+ * disabled.
153
155
*/
154
156
public function getLineLength ()
155
157
{
0 commit comments