Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
23 | 14 | public function __construct(array $data = [], Env $env) |
|
24 | { |
||
25 | $data += [ |
||
26 | 14 | 'text/html' => PrettyPageHandler::class, |
|
27 | 14 | 'application/javascript' => JsonResponseHandler::class, |
|
28 | 14 | 'application/json' => JsonResponseHandler::class, |
|
29 | 14 | 'application/ld+json' => JsonResponseHandler::class, |
|
30 | 14 | 'application/vnd.api+json' => JsonResponseHandler::class, |
|
31 | 14 | 'application/vnd.geo+json' => JsonResponseHandler::class, |
|
32 | 14 | 'application/xml' => XmlResponseHandler::class, |
|
33 | 14 | 'application/atom+xml' => XmlResponseHandler::class, |
|
34 | 14 | 'application/rss+xml' => XmlResponseHandler::class, |
|
35 | 14 | 'text/plain' => PlainTextHandler::class, |
|
36 | ]; // @codeCoverageIgnore |
||
37 | |||
38 | 14 | $this->debug = (bool) $env->getValue('DEBUG_STACKTRACE', false); |
|
|
|||
39 | 14 | parent::__construct($data); |
|
40 | 14 | } |
|
41 | |||
47 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..