Skip to content

Commit 640bcd5

Browse files
committed
an AbstractFunction is created using the create() factory method instead of the constructor
1 parent 1c55028 commit 640bcd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AbstractTestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public static function getApi(string $remoteFunction): RemoteApi
134134
public static function newSapRfc(string $name, array $params = null, IConfiguration $config = null, IApi $api = null): IFunction
135135
{
136136
$class = static::getClassName();
137-
return new $class($name, $params, $config, $api);
137+
return $class::create($name, $params, $config, $api);
138138
}
139139

140140
/**

0 commit comments

Comments
 (0)