Skip to content

Commit c0c6592

Browse files
committed
Cast $count to int before comparing and append space to singular values
1 parent 0d37d4b commit c0c6592

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Syntax/SteamApi/Containers/BaseContainer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ protected function getImageForAvatar($image)
6363
*/
6464
protected function pluralize($word, $count)
6565
{
66-
if ($count === 1) {
67-
return $word;
66+
if ((int) $count === 1) {
67+
return $word .' ';
6868
}
6969

7070
return $word .'s ';

0 commit comments

Comments
 (0)