diff --git a/Header/AbstractHeader.php b/Header/AbstractHeader.php index 6843f9f..d192cab 100644 --- a/Header/AbstractHeader.php +++ b/Header/AbstractHeader.php @@ -164,14 +164,14 @@ protected function getEncodableWordTokens(string $string): array if ($this->tokenNeedsEncoding($token)) { $encodedToken .= $token; } else { - if (\strlen($encodedToken) > 0) { + if ('' !== $encodedToken) { $tokens[] = $encodedToken; $encodedToken = ''; } $tokens[] = $token; } } - if (\strlen($encodedToken)) { + if ('' !== $encodedToken) { $tokens[] = $encodedToken; }