Skip to content

Commit 1cb355a

Browse files
committed
Remove deprecation message str_replace
1 parent 01c452f commit 1cb355a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/OutputChannel/Modifier/Filter/QueryCleanTermFilter.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ class QueryCleanTermFilter implements OutputChannelModifierFilterInterface
2020
{
2121
public function dispatchFilter(OutputChannelAllocatorInterface $outputChannelAllocator, array $options): string
2222
{
23+
$rawTerm = $options['raw_term'] ?? '';
24+
2325
return trim(
2426
preg_replace(
2527
'|\s{2,}|',
@@ -29,7 +31,7 @@ public function dispatchFilter(OutputChannelAllocatorInterface $outputChannelAll
2931
' ',
3032
strtolower(
3133
strip_tags(
32-
str_replace("\n", ' ', $options['raw_term'])
34+
str_replace("\n", ' ', $rawTerm)
3335
)
3436
)
3537
)

0 commit comments

Comments
 (0)