-
FACT-Finder PHP Library version: 1.2.5+src
-
PHP version: PHP 7.0.25
-
Expected behavior:
PhpStorm, doc-tag for \FACTFinder\Adapter\Suggest::getSuggestions() returns \FACTFinder\Data\SuggestQuery[].
-
Actual behavior:
PhpStorm, doc-tag for \FACTFinder\Adapter\Suggest::getSuggestions() returns \FACTFinder\Adapter\FACTFinder\Data\SuggestQuery[].
Expected \FACTFinder\Data\SuggestQuery[], got \FACTFinder\Adapter\FACTFinder\Data\SuggestQuery[]
use FACTFinder\Data\SuggestQuery;
class MyClass {
/**
* @param SuggestQuery[] $suggestions
*/
private function myFnc1($suggestions)
{
// ...
}
private function myFnc2()
{
$suggest = new Suggest();
$this->myFnc1($suggest->getSuggestions());
}
}
In general are a lot of the doc-tags not right:
- namespaces relative for php-doc-tag but absolute written
- missing
@param and @return but sometimes also too much from older versions
FACT-Finder PHP Library version:
1.2.5+srcPHP version:
PHP 7.0.25Expected behavior:
PhpStorm, doc-tag for
\FACTFinder\Adapter\Suggest::getSuggestions()returns\FACTFinder\Data\SuggestQuery[].Actual behavior:
PhpStorm, doc-tag for
\FACTFinder\Adapter\Suggest::getSuggestions()returns\FACTFinder\Adapter\FACTFinder\Data\SuggestQuery[].In general are a lot of the doc-tags not right:
@paramand@returnbut sometimes also too much from older versions