They are rewritten functions (i used 7.3 before)... but sometimes i have to use them for example if my return type is Array of something.... i cant return function xy() : User[] but only function xy(): array so i add @return array|User[] to docblock...
PS: and PhpStorm returns me errors when definition in docblock is missing... (i have to configure it to do not doing it)
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
They are rewritten functions (i used 7.3 before)... but sometimes i have to use them for example if my return type is Array of something.... i cant return
function xy() : User[]
but onlyfunction xy(): array
so i add@return array|User[]
to docblock...PS: and PhpStorm returns me errors when definition in docblock is missing... (i have to configure it to do not doing it)