Skip to content

Commit

Permalink
improved autogenerated migration comment
Browse files Browse the repository at this point in the history
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
  • Loading branch information
userator authored Nov 8, 2024
1 parent 8bd71d3 commit a09b22d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/views/migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use yii\db\Migration;

/**
* Class <?= $className . "\n" ?>
* Autogenerated migration

Check warning on line 21 in framework/views/migration.php

View check run for this annotation

Codecov / codecov/patch

framework/views/migration.php#L21

Added line #L21 was not covered by tests
*/
class <?= $className ?> extends Migration
{
Expand Down

0 comments on commit a09b22d

Please sign in to comment.