File tree 2 files changed +7
-2
lines changed
src/OutputChannel/Modifier/Filter
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Upgrade Notes
2
2
3
+ ## 3.0.2
4
+ [ BUGFIX] QueryCleanTermFilter str_replace fallback
5
+
3
6
## 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
5
8
6
9
## Migrating from Version 2.x to Version 3.0.0
7
10
Original file line number Diff line number Diff line change @@ -20,6 +20,8 @@ class QueryCleanTermFilter implements OutputChannelModifierFilterInterface
20
20
{
21
21
public function dispatchFilter (OutputChannelAllocatorInterface $ outputChannelAllocator , array $ options ): string
22
22
{
23
+ $ rawTerm = $ options ['raw_term ' ] ?? '' ;
24
+
23
25
return trim (
24
26
preg_replace (
25
27
'|\s{2,}| ' ,
@@ -29,7 +31,7 @@ public function dispatchFilter(OutputChannelAllocatorInterface $outputChannelAll
29
31
' ' ,
30
32
strtolower (
31
33
strip_tags (
32
- str_replace ("\n" , ' ' , $ options [ ' raw_term ' ] )
34
+ str_replace ("\n" , ' ' , $ rawTerm )
33
35
)
34
36
)
35
37
)
You can’t perform that action at this time.
0 commit comments