This i not quite true. PSRs always have to be evaluated in a version context. I guess most of them would not make any sense if we are talking about PHP 4.
Nevertheless, my proposal was to omit the redundant declaration. Which means that it will still be suitable for all versions. Quick example to demonstrate a version agnostic rule: > When provided it MUST contain a "Type" to indicate what is expected. becomes > When provided it MUST contain a "Type" to indicate what is expected, if not already defined by type hints. Now all versions are happy. Those versions which do not support type hints for this specific element, can not define a type, which makes the type part mandatory again. BTW .. if we take PHP 7.4 into account, this proposal would also affect @var tag when its used for describing class properties. Am Mittwoch, 2. Oktober 2019 10:47:50 UTC+2 schrieb Anton Fedonjuk: > > PSR does not limit the PHP version > > среда, 2 октября 2019 г., 11:40:06 UTC+3 пользователь Nils Rückmann > написал: >> >> 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/3aeb94ae-6a66-476a-bfcb-83fa6513b3eb%40googlegroups.com.