Skip to content

Commit

Permalink
[Str][Byte] remove unnecessary @var annotation
Browse files Browse the repository at this point in the history
Signed-off-by: azjezz <azjezz@protonmail.com>
  • Loading branch information
azjezz committed Aug 25, 2021
1 parent 0f6d03d commit 90705bd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Psl/Str/Byte/words.php
Expand Up @@ -19,10 +19,8 @@
function words(string $string, ?string $characters_list = null): array
{
if (null === $characters_list) {
/** @var array<int, string> $words */
$words = str_word_count($string, 2);
} else {
/** @var array<int, string> $words */
$words = str_word_count($string, 2, $characters_list);
}

Expand Down

0 comments on commit 90705bd

Please sign in to comment.