Ejemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 protected function isNullValue()
 {
     // Thank you very much, DaPulse. Changing the return type of an API endpoint clearly does not break any existing
     // code. Check to see if an invalid user is returned to be able to return null
     return parent::isNullValue() || is_array($this->jsonResponse) && array_key_exists('value', $this->jsonResponse) && is_array($this->jsonResponse['value']) && array_key_exists('id', $this->jsonResponse['value']) && $this->jsonResponse['value']['id'] === 0;
 }