Skip to content

Commit 5c78d9a

Browse files
committed
minor changes
* Set function and connection null regardless of their content in destruct. * Add comments on class vars function and connection.
1 parent fdc052b commit 5c78d9a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/SapRfcFunction.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@
2828
class SapRfcFunction extends AbstractFunction
2929
{
3030
/**
31+
* PHP module connection object.
3132
* @var \sapnwrfc
3233
*/
3334
protected $connection;
3435

3536
/**
37+
* PHP module function object.
3638
* @var \sapnwrfc_function
3739
*/
3840
protected $function;
@@ -42,9 +44,8 @@ class SapRfcFunction extends AbstractFunction
4244
*/
4345
public function __destruct()
4446
{
45-
if ($this->function !== null) {
46-
$this->function = null;
47-
}
47+
$this->connection = null;
48+
$this->function = null;
4849
}
4950

5051
/**

0 commit comments

Comments
 (0)