freearhey / wikidata

A PHP client for working with Wikidata API.
MIT License
54 stars 22 forks source link

Error in Quantity value #6

Closed S43534 closed 7 years ago

S43534 commented 7 years ago

ErrorException in QuantityValue.php line 14: Undefined property: stdClass::$upperBound

Reproduce:

$result = $wikidata->search('Philipp Lahm')->first()->getEntityId();
$wikidata->entities($result);

Fix:

$this->upperBound = isset($value->upperBound) ? $value->upperBound : null;
$this->lowerBound = isset($value->lowerBound) ? $value->lowerBound : null;