Skip to content

Commit 6ff8e6f

Browse files
committed
allow properties to be null #17
fixes Typed property must not be accessed before initialization error
1 parent 4b8ad6b commit 6ff8e6f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/SapRfc.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ class SapRfc extends AbstractFunction
3838
use ParamTrait;
3939

4040
/**
41-
* @var Connection
41+
* @var Connection|null
4242
*/
43-
private Connection $connection;
43+
private ?Connection $connection = null;
4444

4545
/**
46-
* @var RemoteFunction
46+
* @var RemoteFunction|null
4747
*/
48-
private RemoteFunction $function;
48+
private ?RemoteFunction $function = null;
4949

5050
/**
5151
* @var array Which options to use for invoke() method of the module.

0 commit comments

Comments
 (0)