Skip to content

Commit

Permalink
adapt README.md to v5
Browse files Browse the repository at this point in the history
  • Loading branch information
gregor-j committed Aug 6, 2024
1 parent f845af3 commit 30656a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ use phpsap\saprfc\SapRfc;
*
* In this case the configuration array is defined manually.
*/
$result = (new SapRfc(
$result = SapRfc::create(
'MY_COOL_SAP_REMOTE_FUNCTION',
[
'IV_DATE' => (new DateTime('2019-12-31'))
Expand All @@ -41,8 +41,8 @@ $result = (new SapRfc(
ConfigTypeA::JSON_CLIENT => '001',
ConfigTypeA::JSON_USER => 'username',
ConfigTypeA::JSON_PASSWD => 'password'
])
))->invoke();
])
)->invoke();
//The output array contains a DateTime object.
echo $result['OV_DATE']->format('Y-m-d') . PHP_EOL;
```
Expand Down

0 comments on commit 30656a6

Please sign in to comment.