Skip to content

Commit 0768aef

Browse files
committed
Remove RequestMatcher reference originated by C&P
1 parent b4b29e7 commit 0768aef

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/Encoding/FilteredStream.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ abstract class FilteredStream implements StreamInterface
3737
public function __construct(StreamInterface $stream, $readFilterOptions = null, $writeFilterOptions = null)
3838
{
3939
$this->readFilterCallback = Filter\fun($this->readFilter(), $readFilterOptions);
40+
4041
if (null !== $writeFilterOptions) {
41-
@trigger_error('The $writeFilterOptions argument is deprecated since version 1.5 and will be removed in 2.0. Use Http\Message\RequestMatcher\RequestMatcher instead.', E_USER_DEPRECATED);
42+
@trigger_error('The $writeFilterOptions argument is deprecated since version 1.5 and will be removed in 2.0.', E_USER_DEPRECATED);
4243
}
44+
4345
$this->stream = $stream;
4446
}
4547

@@ -131,7 +133,7 @@ public function __toString()
131133
*/
132134
public function getReadFilter()
133135
{
134-
@trigger_error('The '.__CLASS__.'::'.__METHOD__.' method is deprecated since version 1.5 and will be removed in 2.0. Use Http\Message\RequestMatcher\RequestMatcher instead.', E_USER_DEPRECATED);
136+
@trigger_error('The '.__CLASS__.'::'.__METHOD__.' method is deprecated since version 1.5 and will be removed in 2.0.', E_USER_DEPRECATED);
135137

136138
return $this->readFilter();
137139
}
@@ -152,7 +154,7 @@ abstract protected function readFilter();
152154
*/
153155
public function getWriteFilter()
154156
{
155-
@trigger_error('The '.__CLASS__.'::'.__METHOD__.' method is deprecated since version 1.5 and will be removed in 2.0. Use Http\Message\RequestMatcher\RequestMatcher instead.', E_USER_DEPRECATED);
157+
@trigger_error('The '.__CLASS__.'::'.__METHOD__.' method is deprecated since version 1.5 and will be removed in 2.0.', E_USER_DEPRECATED);
156158

157159
return $this->writeFilter();
158160
}

0 commit comments

Comments
 (0)