Skip to content

Commit

Permalink
minor #6521 The $link argument must be passed as a reference (mbrig…
Browse files Browse the repository at this point in the history
…-co)

This PR was submitted for the 3.0 branch but it was merged into the 2.3 branch instead (closes #6521).

Discussion
----------

The `$link` argument must be passed as a reference

As the title says the `$link` argument in `close_database_connection` function definition must be accepted as a reference like `close_database_connection(&$link)`.

Commits
-------

a6a88f6 The `$link` argument must be passed as a reference
  • Loading branch information
xabbuh committed Apr 30, 2016
2 parents d58f5f8 + a6a88f6 commit 59be653
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion book/from_flat_php_to_symfony2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ of the application are isolated in a new file called ``model.php``::
return $link;
}

function close_database_connection($link)
function close_database_connection(&$link)
{
$link = null;
}
Expand Down

0 comments on commit 59be653

Please sign in to comment.