1 | <?php |
||
11 | class Resolver |
||
12 | { |
||
13 | /** |
||
14 | * The request object. |
||
15 | * |
||
16 | * @var \Psr\Http\Message\ServerRequestInterface |
||
17 | */ |
||
18 | protected $request; |
||
19 | |||
20 | /** |
||
21 | * Configuration array. |
||
22 | * |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $config; |
||
26 | |||
27 | /** |
||
28 | * The page api object. |
||
29 | * |
||
30 | * @var \Vessel\Render\PageApi |
||
31 | */ |
||
32 | protected $api; |
||
33 | |||
34 | /** |
||
35 | * Initialize a new Resolver |
||
36 | */ |
||
37 | 3 | public function __construct(ServerRequestInterface $request, $config = false) |
|
46 | |||
47 | /** |
||
48 | * Get a modified request message. |
||
49 | * |
||
50 | * @return \Psr\Http\Message\ServerRequestInterface |
||
51 | */ |
||
52 | 3 | public function getRequest() |
|
56 | |||
57 | /** |
||
58 | * Resolve the current page from WebStories. |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | 3 | public function resolve() |
|
74 | |||
75 | /** |
||
76 | * Decode the body of a particular request. |
||
77 | * |
||
78 | * @return mixed |
||
79 | */ |
||
80 | 2 | public function decodeBody(ResponseInterface $response) |
|
88 | |||
89 | /** |
||
90 | * Configure the resolver. |
||
91 | * |
||
92 | * @return void |
||
93 | */ |
||
94 | 9 | public static function config($assign = false) |
|
112 | } |
||
113 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: