Skip to content

Commit 30656a6

Browse files
committed
adapt README.md to v5
1 parent f845af3 commit 30656a6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use phpsap\saprfc\SapRfc;
2929
*
3030
* In this case the configuration array is defined manually.
3131
*/
32-
$result = (new SapRfc(
32+
$result = SapRfc::create(
3333
'MY_COOL_SAP_REMOTE_FUNCTION',
3434
[
3535
'IV_DATE' => (new DateTime('2019-12-31'))
@@ -41,8 +41,8 @@ $result = (new SapRfc(
4141
ConfigTypeA::JSON_CLIENT => '001',
4242
ConfigTypeA::JSON_USER => 'username',
4343
ConfigTypeA::JSON_PASSWD => 'password'
44-
])
45-
))->invoke();
44+
])
45+
)->invoke();
4646
//The output array contains a DateTime object.
4747
echo $result['OV_DATE']->format('Y-m-d') . PHP_EOL;
4848
```

0 commit comments

Comments
 (0)