O
O
Outsider V.2016-01-09 17:20:09
PHP
Outsider V., 2016-01-09 17:20:09

Why does PHPStorm swear?

In PHP 7, it seems that the parser's problem with the sequence of parsing calls has already been solved.
It costs PHP 7.0.2, PHPStrom 10.0.3, the following line in the code:
$this->password_handler::getRandomString(16);
In password_handler - an instance of the object on which I need to call a static method.
PHP itself does not swear in Strict standards mode, but PHPStorm underlines this line in red and writes "incorrect access to static class member', and at the same time the error cannot even be suppressed - the light is not displayed.
What's the matter and how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nazar Mokrinsky, 2016-01-09
@Audiophile

This is one of the many bugs of the PhpStorm parser, you need to write to their tracker (first search, maybe someone has already written about this): https://youtrack.jetbrains.com/issues

S
Salavat Sitdikov, 2016-01-09
@zona7o

Does the php doc say that the password_handler field is of the right type?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question