| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | public function validProvider() { |
||
| 23 | return array( |
||
| 24 | array( |
||
| 25 | new Property(new PropertyId('P214'), null, 'string'), |
||
| 26 | (object) array( |
||
| 27 | '@type' => 'Property', |
||
| 28 | '@id' => 'http://www.wikidata.org/entity/P214', |
||
| 29 | 'name' => 'P214' |
||
| 30 | ), |
||
| 31 | new FormatterOptions(array( |
||
| 32 | ValueFormatter::OPT_LANG => 'en', |
||
| 33 | JsonLdEntityFormatter::OPT_ENTITY_BASE_URI => 'http://www.wikidata.org/entity/' |
||
| 34 | )) |
||
| 35 | ) |
||
| 36 | ); |
||
| 37 | } |
||
| 38 | |||
| 49 |
It seems like you allow that null is being passed for a parameter, however the function which is called does not seem to accept null.
We recommend to add an additional type check (or disallow null for the parameter):