Skip to content

Commit a6a88f6

Browse files
Muhammad Nasir Rahimixabbuh
Muhammad Nasir Rahimi
authored andcommitted
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)`.
1 parent d58f5f8 commit a6a88f6

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)