diff --git a/README.md b/README.md index c5ca2d965..a58e3f1f1 100644 --- a/README.md +++ b/README.md @@ -104,7 +104,7 @@ use Yiisoft\ActiveRecord\ActiveRecord; **/ final class User extends ActiveRecord { - public function tableName(): string + public function getTableName(): string { return '{{%user}}'; } diff --git a/composer.json b/composer.json index d30c4ab25..ed5c52249 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "require-dev": { "maglnet/composer-require-checker": "^4.2", "phpunit/phpunit": "^10.5", - "rector/rector": "^0.18", + "rector/rector": "^0.19", "roave/infection-static-analysis-plugin": "^1.34", "spatie/phpunit-watcher": "^1.23", "vimeo/psalm": "^5.8", diff --git a/src/ActiveRecord.php b/src/ActiveRecord.php index f636136a3..7b408a43d 100644 --- a/src/ActiveRecord.php +++ b/src/ActiveRecord.php @@ -40,21 +40,21 @@ * In this example, Active Record is providing an object-oriented interface for accessing data stored in the database. * But Active Record provides much more functionality than this. * - * To declare an ActiveRecord class you need to extend {@see ActiveRecord} and implement the `tableName` method: + * To declare an ActiveRecord class you need to extend {@see ActiveRecord} and implement the `getTableName` method: * * ```php *