Skip to content

Commit

Permalink
Add stub for \yii\db\Connection::useMaster()
Browse files Browse the repository at this point in the history
  • Loading branch information
erickskrauch committed Oct 18, 2023
1 parent eadad59 commit c3944a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Stubs/db/Connection.stub
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,11 @@ namespace yii\db;

class Connection {

/**
* @template T
* @param callable(self $db): T $callback
* @return T
*/
public function useMaster(callable $callback) {}

}

0 comments on commit c3944a6

Please sign in to comment.