Skip to content

Commit 2af7985

Browse files
committed
Remove deprecation message str_replace
1 parent ce3d222 commit 2af7985

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

UPGRADE.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Upgrade Notes
22

3+
## 3.0.2
4+
[BUGFIX] QueryCleanTermFilter str_replace fallback
5+
36
## 3.0.1
4-
- [LICENSE] Dual-License with GPL and Dachcom Commercial License (DCL) added
7+
[LICENSE] Dual-License with GPL and Dachcom Commercial License (DCL) added
58

69
## Migrating from Version 2.x to Version 3.0.0
710

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)