| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public static function setUpProperties($properties, JsonBasicSchema $ownerSchema) |
||
| 31 | { |
||
| 32 | $properties->description = JsonBasicSchema::string(); |
||
| 33 | $properties->schema = new JsonBasicSchema(); |
||
| 34 | $properties->schema->oneOf[0] = Schema::schema(); |
||
| 35 | $properties->schema->oneOf[1] = FileSchema::schema(); |
||
| 36 | $properties->headers = JsonBasicSchema::object(); |
||
| 37 | $properties->headers->additionalProperties = Header::schema(); |
||
| 38 | $properties->examples = JsonBasicSchema::object(); |
||
| 39 | $ownerSchema->type = 'object'; |
||
|
|
|||
| 40 | $ownerSchema->additionalProperties = false; |
||
| 41 | $ownerSchema->patternProperties['^x-'] = new JsonBasicSchema(); |
||
| 42 | $ownerSchema->patternProperties['^x-']->description = 'Any property starting with x- is valid.'; |
||
| 43 | $ownerSchema->required = array ( |
||
| 44 | 0 => 'description', |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | } |
||
| 49 |
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..