Skip to content

Commit 59be653

Browse files
committed
minor #6521 The $link argument must be passed as a reference (mbrig-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
2 parents d58f5f8 + a6a88f6 commit 59be653

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/from_flat_php_to_symfony2.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ of the application are isolated in a new file called ``model.php``::
148148
return $link;
149149
}
150150

151-
function close_database_connection($link)
151+
function close_database_connection(&$link)
152152
{
153153
$link = null;
154154
}

0 commit comments

Comments
 (0)