C
C
Cortess2019-03-25 21:59:06
phpstorm
Cortess, 2019-03-25 21:59:06

What's wrong with phpdoc?

Good afternoon, there is an array of $bookList and objects in it $book, when I designate them as @ var in phpDoc, phpStorm does not swear, but when I designate them as @ array and @ ojbect, wargning is displayed accordingly. What's the matter ?
0a400d17744fcd30c0655a4a7dfc8f3d.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ksnk, 2019-03-26
@Cortess

@var array booklist
or
@var object[] booklist

E
Evgeny Romashkan, 2019-03-25
@EvgeniiR

@ array and @ ojbect respectively highlight the wargning. What's the matter ?

Is it because phpdoc does not have such tags, for example?
Where did you find @object or @arraysomething? docs.phpdoc.org/references/phpdoc/index.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question