M
M
Michael2015-09-09 12:14:43
PHP
Michael, 2015-09-09 12:14:43

How to teach PHPStorm to see methods?

There are for example

public function load($class) {
        return new $class;
    }

Is it possible now to force PHPStorm to automatically append methods on the next call:
$this->load("MyClass")-> ???

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Marcuzy, 2016-02-10
@Marcuzy

/**
     * @param string $class
     * @return MyClass
     */
    public function load($class) {
        return new $class;
    }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question