Skip to content

Commit aea080e

Browse files
committed
remove references from getFunction() because classes and ressources won't be copied
1 parent 1285539 commit aea080e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/AbstractRemoteFunctionCallTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function testGetFunction()
5252
{
5353
$rfc = new RemoteFunctionCall(new ConfigA());
5454
$rfc->returnName = 'awvovkms';
55-
$function = &$rfc->getFunction();
55+
$function = $rfc->getFunction();
5656
static::assertInstanceOf(IFunction::class, $function);
5757
static::assertInstanceOf(AbstractFunction::class, $function);
5858
static::assertInstanceOf(RemoteFunction::class, $function);

tests/helper/RemoteFunctionCall.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ protected function createConnectionInstance(IConfig $config)
7070
* @throws \phpsap\interfaces\IConnectionFailedException
7171
* @throws \phpsap\interfaces\IUnknownFunctionException
7272
*/
73-
public function &getFunction()
73+
public function getFunction()
7474
{
7575
return parent::getFunction();
7676
}

0 commit comments

Comments
 (0)