dancryer / php-docblock-checker

A simple tool for checking that your PHP classes and methods use docblocks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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