Skip to content

Commit

Permalink
Update parse_bbc signature
Browse files Browse the repository at this point in the history
  • Loading branch information
dragomano committed Oct 19, 2024
1 parent 6ae2841 commit 7996ff1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,14 @@ function sentence_list(array $sentence): string
}

if (! function_exists('parse_bbc')) {
function parse_bbc(...$params): string
{
return implode(',', $params);
function parse_bbc(
string|bool $message,
bool $smileys = true,
string|int $cache_id = '',
array $parse_tags = []
): array|string
{
return is_bool($message) ? [$message, $smileys, $cache_id, $parse_tags] : $message;
}
}

Expand Down

0 comments on commit 7996ff1

Please sign in to comment.