Php-cs-fixer: idea: phpdoc_to_property_type

Created on 7 Mar 2020  路  1Comment  路  Source: FriendsOfPHP/PHP-CS-Fixer

It would be nice if there was a rule for turning @var annotations in to property types as supported in php7.4.

https://wiki.php.net/rfc/typed_properties_v2

Just like phpdoc_to_param_type and phpdoc_to_return_type allows the user to turn @param and @return in to actual type hinting

--
Thanks for a grate tool

kinfeature request

Most helpful comment

Already proposed in #4592.

>All comments

Already proposed in #4592.

Was this page helpful?
0 / 5 - 0 ratings