We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f845af3 commit 30656a6Copy full SHA for 30656a6
README.md
@@ -29,7 +29,7 @@ use phpsap\saprfc\SapRfc;
29
*
30
* In this case the configuration array is defined manually.
31
*/
32
-$result = (new SapRfc(
+$result = SapRfc::create(
33
'MY_COOL_SAP_REMOTE_FUNCTION',
34
[
35
'IV_DATE' => (new DateTime('2019-12-31'))
@@ -41,8 +41,8 @@ $result = (new SapRfc(
41
ConfigTypeA::JSON_CLIENT => '001',
42
ConfigTypeA::JSON_USER => 'username',
43
ConfigTypeA::JSON_PASSWD => 'password'
44
- ])
45
-))->invoke();
+ ])
+)->invoke();
46
//The output array contains a DateTime object.
47
echo $result['OV_DATE']->format('Y-m-d') . PHP_EOL;
48
```
0 commit comments