O
O
Outsider V.2015-07-24 08:29:25
PHP
Outsider V., 2015-07-24 08:29:25

Why doesn't PHPStorm recognize scalar types in type hinting?

The PHP 7 syntax is enabled in the settings and the interpreter is installed:
83fe625badaa43eba82b9aad0fc6184a.PNG
However, the program tries in every possible way to recognize scalar types as classes:
7c7c6221eed54a698b5e159846d0c70c.png
How can I fix this? Version 9.0.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Degtyaruk, 2015-07-30
@hlogeon

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 question

Ask a Question

731 491 924 answers to any question