Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ssandler authored Feb 23, 2021
1 parent 2f22748 commit d9aef42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,10 @@ For example, assume you have a class in your source code that manages database c
```
$pool = new Slack\SQLFake\AsyncMysqlConnectionPool(darray[]);
fb_intercept('Db::getConnectionPool', (string $name, mixed $obj, array<mixed> $args, mixed $data, bool &$done) ==> {
fb_intercept('Db::getConnectionPool', (string $name, mixed $obj, varray<mixed> $args, mixed $data, inout bool $done) ==> {
$done = true;
return $pool;
};
}
});
```

The rest of your code can operate as normal, using the database in the same way it is used in production.
Expand Down

0 comments on commit d9aef42

Please sign in to comment.