Skip to content

Commit

Permalink
replace SapDateTime and SapDateInterval and remove php-sap/datetime f…
Browse files Browse the repository at this point in the history
…rom requirements
  • Loading branch information
gregor-j committed Jul 25, 2024
1 parent d16f516 commit 7ccf5c0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"minimum-stability": "stable",
"require": {
"php": "^8.1",
"ext-json": "*",
"php-sap/datetime": "^1.5"
"ext-json": "*"
},
"autoload": {
"psr-4": {
Expand Down
8 changes: 4 additions & 4 deletions src/Api/IMember.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace phpsap\interfaces\Api;

use phpsap\DateTime\SapDateInterval;
use phpsap\DateTime\SapDateTime;
use DateInterval;
use DateTime;
use phpsap\interfaces\exceptions\IInvalidArgumentException;
use phpsap\interfaces\Util\IJsonSerializable;

Expand Down Expand Up @@ -107,8 +107,8 @@ public function getName(): string;
/**
* Cast a value according to this class.
* @param float|bool|int|string $value The output to typecast.
* @return null|bool|int|float|string|SapDateTime|SapDateInterval
* @return null|bool|int|float|string|DateTime|DateInterval
* @throws IInvalidArgumentException
*/
public function cast(null|bool|int|float|string $value): null|bool|int|float|string|SapDateTime|SapDateInterval;
public function cast(null|bool|int|float|string $value): null|bool|int|float|string|DateTime|DateInterval;
}
8 changes: 4 additions & 4 deletions src/Api/IValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace phpsap\interfaces\Api;

use phpsap\DateTime\SapDateInterval;
use phpsap\DateTime\SapDateTime;
use DateInterval;
use DateTime;
use phpsap\interfaces\exceptions\IInvalidArgumentException;
use phpsap\interfaces\Util\IJsonSerializable;

Expand Down Expand Up @@ -142,8 +142,8 @@ public function isOptional(): bool;
/**
* Cast a given value according to this class.
* @param float|bool|int|string $value The value to typecast.
* @return null|bool|int|float|string|SapDateTime|SapDateInterval
* @return null|bool|int|float|string|DateTime|DateInterval
* @throws IInvalidArgumentException
*/
public function cast(null|bool|int|float|string $value): null|bool|int|float|string|SapDateTime|SapDateInterval;
public function cast(null|bool|int|float|string $value): null|bool|int|float|string|DateTime|DateInterval;
}

0 comments on commit 7ccf5c0

Please sign in to comment.