Apply more strict type checking

This commit is contained in:
Jaapio
2024-11-03 21:54:10 +01:00
parent db271d6f57
commit f985773245
11 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ class Serializer
$indent = str_repeat($this->indentString, $this->indent);
$firstIndent = $this->isFirstLineIndented ? $indent : '';
// 3 === strlen(' * ')
$wrapLength = $this->lineLength ? $this->lineLength - strlen($indent) - 3 : null;
$wrapLength = $this->lineLength !== null ? $this->lineLength - strlen($indent) - 3 : null;
$text = $this->removeTrailingSpaces(
$indent,