Answer the question
In order to leave comments, you need to log in
Why doesn't PHPStorm recognize scalar types in type hinting?
The PHP 7 syntax is enabled in the settings and the interpreter is installed:
However, the program tries in every possible way to recognize scalar types as classes:
How can I fix this? Version 9.0.
Answer the question
In order to leave comments, you need to log in
The official PHPStorm website says that at the moment, PHP7 support is only partial, which seems to hint that new features of the 7th version may not work, type hinting for scalar types is a new thing.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question