D
D
dev4002016-03-18 01:59:04
PHP
dev400, 2016-03-18 01:59:04

Why doesn't PhpStorm see PDO methods?

5c16172829694d0da139c1cccece08c2.png
However, these methods work perfectly. Do you have the same?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2016-03-18
@dev400

phpStorm doesn't seem to know what the Connection::con() method returns.
Do you have a phpDoc in there?

class Connection {
  /**
   *  @return \PDO;
   */
  public static function con() {
  }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question