@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | /** |
27 | 27 | * @param string $regex |
28 | - * @param string|Closure $replace |
|
28 | + * @param string $replace |
|
29 | 29 | * |
30 | 30 | * @return $this |
31 | 31 | */ |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * Parse the supplied value and return the interpreted value |
39 | 39 | * |
40 | - * @param mixed $value |
|
40 | + * @param string $value |
|
41 | 41 | * |
42 | 42 | * @return mixed |
43 | 43 | */ |
@@ -49,9 +49,9 @@ discard block |
||
49 | 49 | { |
50 | 50 | if (is_string($expected)) { |
51 | 51 | $this->valueFactory->shouldReceive('parseValue') |
52 | - ->with($expected) |
|
53 | - ->once() |
|
54 | - ->andReturn($expected); |
|
52 | + ->with($expected) |
|
53 | + ->once() |
|
54 | + ->andReturn($expected); |
|
55 | 55 | } |
56 | 56 | |
57 | 57 | $filter = $this->factory->getFilter($property, $expected); |
@@ -144,8 +144,8 @@ discard block |
||
144 | 144 | { |
145 | 145 | foreach ($configuration as $property => $value) { |
146 | 146 | $this->valueFactory->shouldReceive('parseValue') |
147 | - ->with($value) |
|
148 | - ->andReturn($value); |
|
147 | + ->with($value) |
|
148 | + ->andReturn($value); |
|
149 | 149 | } |
150 | 150 | |
151 | 151 | $filter = $this->factory->createFilters($configuration); |