Argument Error in PHP 7.4
benjamw opened this issue · 1 comments
benjamw commented
Argument 1 passed to phpDocumentor\Reflection\DocBlock\StandardTagFactory::addService() must be an instance of phpDocumentor\Reflection\DocBlock\object
Looks like the type hint is set to object
, and is probably expecting any PHP object, but because it's namespaced, it's actually looking for phpDocumentor\Reflection\DocBlock\object
which doesn't exist.
The argument type hint should be namespaced to root: \object
.
As well as in the TagFactory
Interface.
benjamw commented
Apparently, I'm backwards... this error is happening on PHP 7.1, before object
became a valid type declaration. Disregard.