Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Incorrect error message when specifying array structure in docblock. #47

Open
lindyhopchris opened this issue Oct 4, 2021 · 0 comments

Comments

@lindyhopchris
Copy link

This error:

WARNING  Gear4music\Search\Aggregations\QualitativeAggregation::get_options - @return array<string,QualitativeAggregation>  does not match method signature (array).

Is incorrect. The return type is type-hinted as array, which matches the return type of the method. PHPStorm allows you to be specific in the docblock checker as to the structure of the array, which is why I've used array<string,QualitativeAggregation>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant