Skip to content

Commit

Permalink
Fix php 8.4 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tectiv3 committed Dec 17, 2024
1 parent 354cd4e commit 40caa8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Taggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ public static function renameTag(string $oldTag, string $newTag): int
*
* @return array
*/
public static function popularTags(int $limit = null, int $minCount = 1): array
public static function popularTags(?int $limit = null, int $minCount = 1): array
{
/** @var Collection $tags */
$tags = app(TagService::class)->getPopularTags($limit, static::class, $minCount);
Expand All @@ -516,7 +516,7 @@ public static function popularTags(int $limit = null, int $minCount = 1): array
*
* @return array
*/
public static function popularTagsNormalized(int $limit = null, int $minCount = 1): array
public static function popularTagsNormalized(?int $limit = null, int $minCount = 1): array
{
/** @var Collection $tags */
$tags = app(TagService::class)->getPopularTags($limit, static::class, $minCount);
Expand Down

0 comments on commit 40caa8c

Please sign in to comment.