Closed marcovtwout closed 1 year ago
Q | A |
---|---|
Is bugfix? | ✔️ |
New feature? | ❌ |
Breaks BC? | ❌ |
Tests pass? | ✔️ |
Fixed issues | https://github.com/yiisoft/yii/issues/4533 |
Enhanced Code Cleanliness Enhancements were made to organize the codebase better, through various refactorings, based on checks run through PHPStan.
Removed Redundant Annotations in Multiple Files
In several files (including but not limited to CComponent.php
, CSecurityManager.php
, CCache.php
, CMssqlPdoAdapter.php
, ModelGenerator.php
, CHttpSessionIterator.php
, CViewAction.php
, and COutputCache.php
), unnecessary usage of the @return
and @throws
annotations was detected and has been eradicated.
Elimination of Unnecessary Comments
Unnecessary and meaningless comments were identified and removed in ModelCommand.php
and ModelCode.php
.
Optimization of Translation Handling
The PR includes a removal of unnecessary translations in yii.php
resulting in a cleaner, more efficient code, enhancing the overall performance of the codebase.