You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I adopted this standard, however it always meant a certain discomfort for me since PhpStorm auto-generates PHPDoc stubs using shot type names. It made me submit a feature request to JetBrains to support long type names in auto-generated PHPDoc. Upon this request I was suggested to reconsider the usage of the long form at all as PHP 7 allows only the short form for type hinting.
Thus, I would suggest to consider this change in the Yii Code Style standards as well.
The text was updated successfully, but these errors were encountered:
Yii currently uses long type names for int/bool in doc blocks:
https://github.com/yiisoft/yii2/blob/master/docs/internals/core-code-style.md#44-doc-blocks
I adopted this standard, however it always meant a certain discomfort for me since PhpStorm auto-generates PHPDoc stubs using shot type names. It made me submit a feature request to JetBrains to support long type names in auto-generated PHPDoc. Upon this request I was suggested to reconsider the usage of the long form at all as PHP 7 allows only the short form for type hinting.
Thus, I would suggest to consider this change in the Yii Code Style standards as well.
The text was updated successfully, but these errors were encountered: