Skip to content

Commit 1285539

Browse files
committed
remove references because classes and ressources won't be copied
1 parent 31be292 commit 1285539

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/AbstractFunction.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ abstract class AbstractFunction implements IFunction
4141

4242
/**
4343
* Initialize this class with a connection instance and the function name.
44-
* @param mixed $connection Referenced connection ressource.
44+
* @param mixed $connection Connection ressource/class
4545
* @param string $name
4646
*/
47-
public function __construct(&$connection, $name)
47+
public function __construct($connection, $name)
4848
{
49-
$this->connection = &$connection;
49+
$this->connection = $connection;
5050
$this->name = $name;
5151
$this->reset();
5252
}

src/AbstractRemoteFunctionCall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function invoke($params = null)
104104
* @throws \phpsap\interfaces\exceptions\IConnectionFailedException
105105
* @throws \phpsap\interfaces\exceptions\IUnknownFunctionException
106106
*/
107-
protected function &getFunction()
107+
protected function getFunction()
108108
{
109109
if ($this->function === null) {
110110
//now connect and prepare the function

0 commit comments

Comments
 (0)