Commit 09cb38fc authored by Franz Liedke's avatar Franz Liedke

Fix PHPDoc referring to Closure class.

parent f6bad1e8
......@@ -97,14 +97,14 @@ class Connection {
/**
* Execute a callback wrapped in a database transaction.
*
* @param Closure $callback
* @param callback $callback
* @return void
*/
public function transaction($callback)
{
$this->pdo->beginTransaction();
// After beginning the database transaction, we will call the Closure
// After beginning the database transaction, we will call the callback
// so that it can do its database work. If an exception occurs we'll
// rollback the transaction and re-throw back to the developer.
try
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment