From 2ba318b4f7f82c69a0d7e4d639ba6f6ad45fe68b Mon Sep 17 00:00:00 2001 From: Wilmer Arambula <42547589+terabytesoftw@users.noreply.github.com> Date: Thu, 11 Jan 2024 13:26:49 -0300 Subject: [PATCH] Update docs (#292) --- README.md | 2 +- composer.json | 2 +- src/ActiveRecord.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) 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 *