Skip to content

Commit 7ccf5c0

Browse files
committed
replace SapDateTime and SapDateInterval and remove php-sap/datetime from requirements
1 parent d16f516 commit 7ccf5c0

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
"minimum-stability": "stable",
2323
"require": {
2424
"php": "^8.1",
25-
"ext-json": "*",
26-
"php-sap/datetime": "^1.5"
25+
"ext-json": "*"
2726
},
2827
"autoload": {
2928
"psr-4": {

src/Api/IMember.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace phpsap\interfaces\Api;
66

7-
use phpsap\DateTime\SapDateInterval;
8-
use phpsap\DateTime\SapDateTime;
7+
use DateInterval;
8+
use DateTime;
99
use phpsap\interfaces\exceptions\IInvalidArgumentException;
1010
use phpsap\interfaces\Util\IJsonSerializable;
1111

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

src/Api/IValue.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace phpsap\interfaces\Api;
66

7-
use phpsap\DateTime\SapDateInterval;
8-
use phpsap\DateTime\SapDateTime;
7+
use DateInterval;
8+
use DateTime;
99
use phpsap\interfaces\exceptions\IInvalidArgumentException;
1010
use phpsap\interfaces\Util\IJsonSerializable;
1111

@@ -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 null|bool|int|float|string|SapDateTime|SapDateInterval
145+
* @return null|bool|int|float|string|DateTime|DateInterval
146146
* @throws IInvalidArgumentException
147147
*/
148-
public function cast(null|bool|int|float|string $value): null|bool|int|float|string|SapDateTime|SapDateInterval;
148+
public function cast(null|bool|int|float|string $value): null|bool|int|float|string|DateTime|DateInterval;
149149
}

0 commit comments

Comments
 (0)