for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Isswp101\Persimmon\Elasticsearch;
class InnerHits
{
protected $hits = [];
public function __construct(array $response)
$this->hits = array_get($response, 'inner_hits', []);
array_get($response, 'inner_hits', array())
*
array
$hits
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..
}
public function getParentId($parentType)
return array_get($this->hits, 'inner_hits.' . $parentType . '.hits.hits.0._id');
public function get()
return $this->hits;
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..