1 | <?php |
||
21 | class Header extends Annotation implements IMethod, IRead |
||
22 | { |
||
23 | /** |
||
24 | * @var array<string> 注入アノテーション情報 |
||
25 | */ |
||
26 | private $injectAnnotation; |
||
27 | |||
28 | /** |
||
29 | * @var array<string> 読み込みアノテーション情報 |
||
30 | */ |
||
31 | private $readAnnotation; |
||
32 | |||
33 | /** |
||
34 | * @var array<string, string> mimeタイプリスト |
||
35 | */ |
||
36 | private $contentTypeList = [ |
||
37 | 'txt' => 'text/plain', |
||
38 | 'jpeg' => 'image/jpeg', |
||
39 | 'jpg' => 'image/jpeg', |
||
40 | 'gif' => 'image/gif', |
||
41 | 'png' => 'image/png', |
||
42 | 'tiff' => 'image/tiff', |
||
43 | 'tif' => 'image/tiff', |
||
44 | 'bmp' => 'image/bmp', |
||
45 | 'ico' => 'image/x-icon', |
||
46 | 'svg' => 'image/svg+xml', |
||
47 | 'xml' => 'application/xml', |
||
48 | 'xsl' => 'application/xml', |
||
49 | 'rss' => 'application/rss+xml', |
||
50 | 'rdf' => 'application/rdf+xml', |
||
51 | 'atom' => 'application/atom+xml', |
||
52 | 'zip' => 'application/zip', |
||
53 | 'html' => 'text/html', |
||
54 | 'htm' => 'text/html', |
||
55 | 'css' => 'text/css', |
||
56 | 'csv' => 'text/csv', |
||
57 | 'js' => 'text/javascript', |
||
58 | 'jsonp' => 'text/javascript', |
||
59 | 'json' => 'application/json', |
||
60 | 'pdf' => 'application/pdf', |
||
61 | 'file' => 'application/octet-stream' |
||
62 | ]; |
||
63 | |||
64 | /** |
||
65 | * {@inheritdoc} |
||
66 | */ |
||
67 | 16 | public function onInject(array $injectAnnotation) |
|
73 | |||
74 | /** |
||
75 | * {@inheritdoc} |
||
76 | */ |
||
77 | 5 | public function getAnnotationInfo(): array |
|
81 | |||
82 | /** |
||
83 | * {@inheritdoc} |
||
84 | */ |
||
85 | 11 | public function onMethodInject(IAnnotatable $instance, \ReflectionMethod $method, Container $container) |
|
132 | } |
||
133 |
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..