Skip to content

Commit d16f516

Browse files
committed
add null to cast() parameter and return types
1 parent 7ab8992 commit d16f516

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/Api/IMember.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ public function getName(): string;
106106

107107
/**
108108
* Cast a value according to this class.
109-
* @param float|bool|int|string $value The output to typecast.
110-
* @return bool|int|float|string|SapDateTime|SapDateInterval
109+
* @param float|bool|int|string $value The output to typecast.
110+
* @return null|bool|int|float|string|SapDateTime|SapDateInterval
111111
* @throws IInvalidArgumentException
112112
*/
113-
public function cast(bool|int|float|string $value): bool|int|float|string|SapDateTime|SapDateInterval;
113+
public function cast(null|bool|int|float|string $value): null|bool|int|float|string|SapDateTime|SapDateInterval;
114114
}

src/Api/IValue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ public function isOptional(): bool;
142142
/**
143143
* Cast a given value according to this class.
144144
* @param float|bool|int|string $value The value to typecast.
145-
* @return bool|int|float|string|SapDateTime|SapDateInterval
145+
* @return null|bool|int|float|string|SapDateTime|SapDateInterval
146146
* @throws IInvalidArgumentException
147147
*/
148-
public function cast(bool|int|float|string $value): bool|int|float|string|SapDateTime|SapDateInterval;
148+
public function cast(null|bool|int|float|string $value): null|bool|int|float|string|SapDateTime|SapDateInterval;
149149
}

0 commit comments

Comments
 (0)