1 | <?php |
||
14 | class FileSchema extends ClassStructure { |
||
15 | /** @var string */ |
||
16 | public $format; |
||
17 | |||
18 | /** @var string */ |
||
19 | public $title; |
||
20 | |||
21 | /** @var string */ |
||
22 | public $description; |
||
23 | |||
24 | public $default; |
||
25 | |||
26 | /** @var string[]|array */ |
||
27 | public $required; |
||
28 | |||
29 | /** @var string */ |
||
30 | public $type; |
||
31 | |||
32 | /** @var bool */ |
||
33 | public $readOnly; |
||
34 | |||
35 | /** @var ExternalDocs information about external documentation */ |
||
36 | public $externalDocs; |
||
37 | |||
38 | public $example; |
||
39 | |||
40 | /** |
||
41 | * @param Properties|static $properties |
||
42 | * @param JsonBasicSchema $ownerSchema |
||
43 | */ |
||
44 | public static function setUpProperties($properties, JsonBasicSchema $ownerSchema) |
||
71 | |||
72 | /** |
||
73 | * @param string $format |
||
74 | * @return $this |
||
75 | */ |
||
76 | public function setFormat($format) |
||
81 | |||
82 | /** |
||
83 | * @param string $title |
||
84 | * @return $this |
||
85 | */ |
||
86 | public function setTitle($title) |
||
91 | |||
92 | /** |
||
93 | * @param string $description |
||
94 | * @return $this |
||
95 | */ |
||
96 | public function setDescription($description) |
||
101 | |||
102 | /** |
||
103 | * @param $default |
||
104 | * @return $this |
||
105 | */ |
||
106 | public function setDefault($default) |
||
111 | |||
112 | /** |
||
113 | * @param string[]|array $required |
||
114 | * @return $this |
||
115 | */ |
||
116 | public function setRequired($required) |
||
121 | |||
122 | /** |
||
123 | * @param string $type |
||
124 | * @return $this |
||
125 | */ |
||
126 | public function setType($type) |
||
131 | |||
132 | /** |
||
133 | * @param bool $readOnly |
||
134 | * @return $this |
||
135 | */ |
||
136 | public function setReadOnly($readOnly) |
||
141 | |||
142 | /** |
||
143 | * @param ExternalDocs $externalDocs information about external documentation |
||
144 | * @return $this |
||
145 | */ |
||
146 | public function setExternalDocs($externalDocs) |
||
151 | |||
152 | /** |
||
153 | * @param $example |
||
154 | * @return $this |
||
155 | */ |
||
156 | public function setExample($example) |
||
161 | } |
||
162 | |||
163 |
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..