1 | <?php |
||
7 | class BehatMatcher implements MatcherInterface |
||
8 | { |
||
9 | /** |
||
10 | * @var Matcher |
||
11 | */ |
||
12 | private $pactMatcher; |
||
13 | |||
14 | 8 | public function __construct(Matcher $matcher) |
|
18 | |||
19 | /** |
||
20 | * @param $value |
||
21 | * |
||
22 | * @return array |
||
23 | * @throws \Exception |
||
24 | */ |
||
25 | 1 | public function like($value) |
|
29 | |||
30 | /** |
||
31 | * @param $value |
||
32 | * |
||
33 | * @return mixed |
||
|
|||
34 | */ |
||
35 | 1 | public function exact($value) |
|
39 | |||
40 | /** |
||
41 | * @param string $value |
||
42 | * |
||
43 | * @return array |
||
44 | * @throws \Exception |
||
45 | */ |
||
46 | 1 | public function dateTimeISO8601(string $value) |
|
50 | |||
51 | /** |
||
52 | * @param string $value |
||
53 | * |
||
54 | * @return array |
||
55 | * @throws \Exception |
||
56 | */ |
||
57 | 1 | public function boolean(string $value) |
|
61 | |||
62 | /** |
||
63 | * @param string $value |
||
64 | * |
||
65 | * @return array |
||
66 | * @throws \Exception |
||
67 | */ |
||
68 | 1 | public function integer(string $value) |
|
72 | |||
73 | /** |
||
74 | * @param string $value |
||
75 | * |
||
76 | * @return array |
||
77 | * @throws \Exception |
||
78 | */ |
||
79 | 1 | public function uuid(string $value) |
|
83 | |||
84 | /** |
||
85 | * @param array $object |
||
86 | * |
||
87 | * @return array |
||
88 | */ |
||
89 | 1 | public function eachLike(array $object) |
|
93 | |||
94 | /** |
||
95 | * @param string $string |
||
96 | * |
||
97 | * @return bool | float | int | null | string |
||
98 | */ |
||
99 | 2 | private function normolizeValue(string $string) |
|
127 | } |
||
128 |
This check looks for the generic type
array
as a return type and suggests a more specific type. This type is inferred from the actual code.