I see the reasoning but how is a phpdoc parser going to handle 

/** @return ImNotATypeImADescription make sure you parse me correctly */
function func(): int {} 

On Wednesday, October 2, 2019 at 6:40:06 PM UTC+10, Nils Rückmann wrote:
>
> The type declaration in DocBlocks dates back to a time when type-hinting 
> was not part of the language. 
> IMO there is no reason to keep the type as mandatory part of tags like 
> @param. 
> We should be be allowed to omit the type part if it does not add any new 
> information.
>
> Affected tags:
>
> @param
> @return
>
> Any thoughts about this? Could not find an ongoing (or ended) discussion 
> about this, if i missed it, please point me to it.
>
> Regards,
> Nils
>

-- 
You received this message because you are subscribed to the Google Groups "PHP 
Framework Interoperability Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to php-fig+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/php-fig/faa42671-f37e-46e0-a1a0-4eda2f764502%40googlegroups.com.

Reply via email to