Skip to content

Commit be8576e

Browse files
authored
Merge pull request #119 from Neveark/php84-explicit-null
Fix PHP 8.4 compatibility: Add explicit nullable type declaration for followingCountReadable
2 parents d8eed16 + 0d9b650 commit be8576e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Traits/CanFollow.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ public function getFollowingCountAttribute()
115115
* Return followingCount in a readable format.
116116
*
117117
* @param integer $precision
118-
* @param string $divisors
118+
* @param string|null $divisors
119119
* @return int|float|string
120120
*/
121-
public function followingCountReadable(int $precision = 1, string $divisors = null)
121+
public function followingCountReadable(int $precision = 1, ?string $divisors = null)
122122
{
123123
return Interaction::numberToReadable($this->followingCount(), $precision, $divisors);
124124
}

0 commit comments

Comments
 (0)