No suggestions for PDO object
I'm referencing a PDO object but not finding any of the functions available on it.
I've included "ext-pdo" in my composer.json but it seems trying to "use" it isn't helping.
What am I missing?
I saw this very helpful post, but it's not helping me got to the root of my issue:
Please sign in to leave a comment.
Hi there,
Accordingly to your screenshot $pdo is a function parameter. You need to typehint it in order for the IDE to provide code completion. This can be done via PHP's own typehint or by using PHPDoc.
For example:
Great. Thanks.