1 | <?php |
||
9 | class Resolver |
||
10 | { |
||
11 | /** |
||
12 | * The request object. |
||
13 | * |
||
14 | * @var \Psr\Http\Message\ServerRequestInterface |
||
15 | */ |
||
16 | protected $request; |
||
17 | |||
18 | /** |
||
19 | * Configuration array. |
||
20 | * |
||
21 | * @var array |
||
22 | */ |
||
23 | protected $config; |
||
24 | |||
25 | /** |
||
26 | * The page api object. |
||
27 | * |
||
28 | * @var \Vssl\Render\PageApi |
||
29 | */ |
||
30 | protected $api; |
||
31 | |||
32 | /** |
||
33 | * Initialize a new Resolver |
||
34 | */ |
||
35 | 11 | public function __construct(ServerRequestInterface $request, $config = false) |
|
44 | |||
45 | /** |
||
46 | * Get a modified request message. |
||
47 | * |
||
48 | * @return \Psr\Http\Message\ServerRequestInterface |
||
49 | */ |
||
50 | 4 | public function getRequest() |
|
54 | |||
55 | /** |
||
56 | * Get an instance of the PageApi class. |
||
57 | * |
||
58 | * @return \Vssl\Render\PageApi |
||
59 | */ |
||
60 | 3 | public function getPageApi() |
|
64 | |||
65 | /** |
||
66 | * Get the configuration settings. |
||
67 | * |
||
68 | * @return array |
||
69 | */ |
||
70 | 1 | public function getConfig() |
|
74 | |||
75 | /** |
||
76 | * Get the configured CacheAdapterInterface. |
||
77 | * |
||
78 | * @return \Journey\Cache\CacheAdapterInterface |
||
79 | */ |
||
80 | 1 | public function getCache() |
|
84 | |||
85 | /** |
||
86 | * Resolve the current page from WebStories. Returns a render able page or |
||
87 | * false. |
||
88 | * |
||
89 | * @return array |
||
90 | */ |
||
91 | 4 | public function resolve() |
|
111 | |||
112 | /** |
||
113 | * Decode the body of a particular request. |
||
114 | * |
||
115 | * @return mixed |
||
116 | */ |
||
117 | 4 | public function decodePage(ResponseInterface $response) |
|
126 | |||
127 | /** |
||
128 | * Configure the resolver. |
||
129 | * |
||
130 | * @return void |
||
131 | */ |
||
132 | 24 | public static function config($assign = false) |
|
151 | } |
||
152 |
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: