On Wednesday, 2 October 2019 10:40:06 UTC+2, 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.
>
>
Hi, 
That makes sense to me, there https://github.com/doctrine/coding-standard does 
already that automatically (there are some bugs with built-in php 
interfaces as Serializable, but in general works pretty well).
However tools as PHPStorm will still complain about that asking to place 
the docblocks even if type declarations are present.

Any other PHP-FIG members has a point of view on this? 

Asmir

-- 
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/696a382d-c258-4724-a360-7d662d9107cc%40googlegroups.com.

Reply via email to