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

Fix #20276: Removed autogenerated migration phpdoc #20276

Merged

Conversation

userator
Copy link
Contributor

@userator userator commented Nov 8, 2024

When renaming a class using automated tools (IDE), the class name in the comment is ignored and remains in its original form, which misleads the developer.

relevant for versions 2.2 and 2.0

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

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.84%. Comparing base (8bd71d3) to head (cd24009).

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #20276   +/-   ##
=========================================
  Coverage     64.84%   64.84%           
  Complexity    11399    11399           
=========================================
  Files           430      430           
  Lines         37137    37134    -3     
=========================================
  Hits          24080    24080           
+ Misses        13057    13054    -3     

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

@userator
Copy link
Contributor Author

userator commented Nov 8, 2024

a duplicate declaration of the class name is meaningless because the class name already tells the developer what kind of class it is

@userator userator force-pushed the improved-autogenerated-migration-comment branch from 8296c2d to d47845c Compare November 8, 2024 11:53
framework/db/BaseActiveRecord.php Outdated Show resolved Hide resolved
framework/db/mssql/Schema.php Outdated Show resolved Hide resolved
framework/views/migration.php Outdated Show resolved Hide resolved
@userator userator force-pushed the improved-autogenerated-migration-comment branch from d47845c to bf3be9d Compare November 8, 2024 16:53
@samdark
Copy link
Member

samdark commented Nov 11, 2024

All good 👍 Please add a line to CHANGELOG.

@samdark samdark added this to the 2.0.52 milestone Nov 11, 2024
@userator
Copy link
Contributor Author

userator commented Nov 11, 2024

@samdark fixed, line added to CHANGELOG.

@userator userator force-pushed the improved-autogenerated-migration-comment branch from bf3be9d to cd24009 Compare November 11, 2024 08:42
@samdark samdark changed the title improved autogenerated migration comment Fix #20276: Removed autogenerated migration phpdoc Nov 11, 2024
@samdark samdark merged commit 5c16821 into yiisoft:master Nov 11, 2024
74 of 77 checks passed
@samdark
Copy link
Member

samdark commented Nov 11, 2024

Thank you!

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.

4 participants