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