Problem with self return type-hint documented as returning $this
lindyhopchris opened this issue · comments
This error:
WARNING Gear4music\Search\Aggregations\AggregationStack::add_aggregations - @return $this does not match method signature (self).
is incorrect. It's correct to set the docblock to return $this
, but in this scenario the PHP7 method return type-hint would be self