Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncronize last changes master to 2.2. #20130

Merged
merged 15 commits into from
Mar 20, 2024
Merged

Conversation

terabytesoftw
Copy link
Member

Q A
Is bugfix?
New feature? ✔️
Breaks BC?

Gustavo Botti and others added 14 commits January 11, 2024 19:27
Upper case title, as used in other pages
…mary-always-visible-with-csp-header

Fix error summary always visible with CSP header (yiisoft#19691)
…iisoft#20108)

* Explain why DI fails sometimes and how to fix this (yiisoft#20010)

* Explain why AR does not support DI by default and how to support it (yiisoft#20010)
In Uzbek it is "Таҳрирлаш"  not  "Таҳририлаш"
…Lite) in `\yii\db\ColumnSchema::typecast()`
Fix typo in setCookieParams() documentation
Copy link

what-the-diff bot commented Mar 20, 2024

PR Summary

  • Set up linting for PHP code
    Lint.yaml file is added, which sets up a comprehensive PHP linting using PHP_CodeSniffer.

  • Retired the old code standards tool
    The PHP coding standards fixer and other configuration files have been removed.

  • Enhanced documentation
    Few spelling and capitalization errors are corrected, and additional information, for example, about using Dependency Injection with Active Record models, is included in the relevant documents.

  • Included changes in project history
    The CHANGELOG.md updated to include recent bug fixes, enhancements, and dependencies added to the project.

  • Code linting and standards adjustments
    Several annotations and ignore comments added for PHP_CodeSniffer to handle PSR1 and PSR1 standards.

  • Bug fixes and code enhancements
    Typos and conditions fixed in few of the JavaScript files, with the addition of new functions for improving usability and validation.

  • Code refinement
    Corrected typos, fixed errors, and fine-tuned various parts of the codebase, including significant changes in the controller and widget files.

  • Disabling variable name checks in certain databases
    For specific database-related files, a specific rule of the coding standard is disabled, allowing for an exception in the variable naming conventions.

  • Enhanced and amended database operations
    Made numerous changes including the addition of the constant MSSQL_NO_MORE_ROWS_ERROR_CODE, and introduction of the getRawSql method, changing ways how databases interact with the framework.

  • Improved formatting and code quality
    Several files went through changes like adding or removing spaces, changing the use of quotes, adding or removing blank lines, thus improving the overall quality and readability of the code.

  • New functionality and options
    Many new functionalities are introduced and existing ones are enhanced. For example, methods for masking strings and normalizing datetime values are now available; New MIME types are added. More configuration options are introduced in existing functions as well.

  • New classes and methods
    Introduced new classes with updated methods to extend the capabilities of the framework. These range from 'RangeValidator' for data validations, 'JsonResponseFormatter' for formatting response data, 'User' class for managing users to 'Menu' for handling menu-related functionalities.

  • Testing improvements
    Added new test cases to validate the recent changes in the code, enhancing the overall quality assurance of the project.

  • New code standards configuration file
    A configuration file for PHP_CodeSniffer called phpcs.xml.dist has been added for setting up the linting rules and standards.

Note: This overview doesn't include minor, less relevant code changes and nitpicking changes like adding blank lines or spaces. However, such changes contribute to improving code readability and maintaining consistency across the codebase.

Copy link

codecov bot commented Mar 20, 2024

Codecov Report

Attention: Patch coverage is 95.59748% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 65.63%. Comparing base (3587dfb) to head (a59a2b8).

Files Patch % Lines
framework/console/ErrorHandler.php 0.00% 2 Missing ⚠️
framework/db/pgsql/QueryBuilder.php 60.00% 2 Missing ⚠️
...ramework/console/controllers/MigrateController.php 0.00% 1 Missing ⚠️
framework/db/mssql/QueryBuilder.php 92.30% 1 Missing ⚠️
framework/helpers/mimeTypes.php 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                2.2   #20130      +/-   ##
============================================
+ Coverage     65.60%   65.63%   +0.03%     
- Complexity    11211    11213       +2     
============================================
  Files           424      424              
  Lines         36674    36681       +7     
============================================
+ Hits          24060    24076      +16     
+ Misses        12614    12605       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samdark samdark merged commit 9578380 into yiisoft:2.2 Mar 20, 2024
45 checks passed
@terabytesoftw terabytesoftw deleted the sync-to-master branch March 20, 2024 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants