laravel-ide-helper
laravel-ide-helper copied to clipboard
Psaml phpdoc bug
Versions:
- ide-helper Version: 2.10.0
- Lumen Version: 8
- PHP Version: 7.4
Description:
this
/**
* @param class-string<T> $className
* @param null|string $driver
* @return T
* @noinspection all
*/
public function instance( $className, $driver = null ){
turns into:
* @param \SteveMoretz\Tools\Utils\MultiDrivers\Managers\class-string<T> $className
* @param null|string $driver
* @return \SteveMoretz\Tools\Utils\MultiDrivers\Managers\T
* @noinspection all
* @static
*/
(In case you are not familiar T is for generic, so it must not be namespaced)
how can I stop this from happening?
Possible fix (if feasible on your side): wish we had a way to ignore the @params that start with a keyword.
Took me a long frustrating debug until I found and fixed the problem, please merge it: https://github.com/barryvdh/ReflectionDocBlock/pull/6

Now I'll have generic autocompletion on facade, thanks to your package and that little PR.
Closing, as the PR has been merged
@mfn The change was actually reverted and is pending some test fixes here. I believe it is also the cause of #1401
I've a feeling I mixed up issues and closed this one wrongly anyway -> sorry, re-opening!