1 | <?php |
||
15 | final class DiactorosMessageFactory implements MessageFactory |
||
16 | { |
||
17 | /** |
||
18 | * @var DiactorosStreamFactory |
||
19 | */ |
||
20 | private $streamFactory; |
||
21 | |||
22 | 4 | public function __construct() |
|
26 | |||
27 | /** |
||
28 | * {@inheritdoc} |
||
29 | */ |
||
30 | 1 | public function createRequest( |
|
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | 1 | public function createResponse( |
|
61 | } |
||
62 |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.