Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
25 | public static function setUpProperties($properties, JsonBasicSchema $ownerSchema) |
||
26 | { |
||
27 | $properties->description = JsonBasicSchema::string(); |
||
28 | $properties->url = JsonBasicSchema::string(); |
||
29 | $properties->url->format = 'uri'; |
||
30 | $ownerSchema->type = 'object'; |
||
|
|||
31 | $ownerSchema->additionalProperties = false; |
||
32 | $ownerSchema->patternProperties['^x-'] = new JsonBasicSchema(); |
||
33 | $ownerSchema->patternProperties['^x-']->description = 'Any property starting with x- is valid.'; |
||
34 | $ownerSchema->description = 'information about external documentation'; |
||
35 | $ownerSchema->required = array ( |
||
36 | 0 => 'url', |
||
37 | ); |
||
38 | } |
||
39 | |||
61 |
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..