1 | <?php |
||
7 | class RequestFactory implements RequestFactoryInterface |
||
8 | { |
||
9 | /** |
||
10 | * The AuthorizationHeaderInterface instance. |
||
11 | * |
||
12 | * @var \Risan\OAuth1\Request\AuthorizationHeaderInterface |
||
13 | */ |
||
14 | protected $authorizationHeader; |
||
15 | |||
16 | /** |
||
17 | * The UriParserInterface instance. |
||
18 | * |
||
19 | * @var \Risan\OAuth1\Request\UriParserInterface |
||
20 | */ |
||
21 | protected $uriParser; |
||
22 | |||
23 | /** |
||
24 | * Create the new instance of RequestFactory class. |
||
25 | * |
||
26 | * @param \Risan\OAuth1\Request\AuthorizationHeaderInterface $authorizationHeader |
||
27 | * @param \Risan\OAuth1\Request\UriParserInterface $uriParser |
||
28 | */ |
||
29 | 7 | public function __construct(AuthorizationHeaderInterface $authorizationHeader, UriParserInterface $uriParser) |
|
34 | |||
35 | /** |
||
36 | * {@inheritDoc} |
||
37 | */ |
||
38 | 1 | public function getAuthorizationHeader() |
|
42 | |||
43 | /** |
||
44 | * {@inheritDoc} |
||
45 | */ |
||
46 | 1 | public function getConfig() |
|
50 | |||
51 | /** |
||
52 | * {@inheritDoc} |
||
53 | */ |
||
54 | 1 | public function getUriParser() |
|
58 | |||
59 | /** |
||
60 | * {@inheritDoc} |
||
61 | */ |
||
62 | 1 | public function createForTemporaryCredentials() |
|
70 | |||
71 | /** |
||
72 | * {@inheritDoc} |
||
73 | */ |
||
74 | 1 | public function buildAuthorizationUri(TemporaryCredentials $temporaryCredentials) |
|
81 | |||
82 | /** |
||
83 | * {@inheritDoc} |
||
84 | */ |
||
85 | 1 | public function createForTokenCredentials(TemporaryCredentials $temporaryCredentials, $verificationCode) |
|
96 | |||
97 | /** |
||
98 | * Create a new instance of Request class. |
||
99 | * |
||
100 | * @param string $method |
||
101 | * @param strin $uri |
||
102 | * @param array $options [description] |
||
103 | * @return \Risan\OAuth1\Request\RequestInterface |
||
104 | */ |
||
105 | public function create($method, $uri, array $options = []) |
||
109 | } |
||
110 |
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: