Vscode-intelephense: Undefined type Memcached

Created on 11 Jul 2020  路  2Comments  路  Source: bmewburn/vscode-intelephense

Describe the bug
Undefined type error when using built in php class Memcached.

To Reproduce

<?php

class Foo {
    public function __construct() {
        $this->server = new Memcached;
    }
}

Screenshots
memcached

Platform and version
Mac OS 10.11.6
VSCode 1.47.0
Intelephense 1.5.0

needs more info

Most helpful comment

Do you have memcached added to intelephense.stubs?

All 2 comments

Do you have memcached added to intelephense.stubs?

Yeah, that works. Didn't want to bother you.
Thanks a lot!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aleksandervines picture aleksandervines  路  3Comments

ghost picture ghost  路  3Comments

zlianon picture zlianon  路  3Comments

swashata picture swashata  路  3Comments

ottopic picture ottopic  路  3Comments