Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jlevers committed Jul 10, 2024
1 parent 78dbb62 commit 315528f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Traits/Deserializes.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace SellingPartnerApi\Traits;

use DateTime;
use DateTimeZone;
use DateTimeInterface;
use DateTimeZone;
use ReflectionClass;
use SellingPartnerApi\Exceptions\InvalidAttributeTypeException;
use SellingPartnerApi\Exceptions\UnknownDatetimeFormatException;
Expand Down Expand Up @@ -123,8 +123,8 @@ protected static function convertValueToDateTime(string $value): DateTime
foreach (static::$validDatetimeFormats as $validDatetimeFormat) {
try {
$returnValue = DateTime::createFromFormat(
$validDatetimeFormat,
$value,
$validDatetimeFormat,
$value,
new DateTimeZone('UTC')
);
// Only return a valid object, else try again until failure
Expand Down
2 changes: 1 addition & 1 deletion tests/SerializationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
use SellingPartnerApi\Seller\OrdersV0\Dto\ConfirmShipmentRequest;
use SellingPartnerApi\Seller\OrdersV0\Dto\PackageDetail;
use SellingPartnerApi\Seller\OrdersV0\Requests\ConfirmShipment;
use SellingPartnerApi\Seller\ProductFeesV0\Responses\GetMyFeesEstimateResponse;
use SellingPartnerApi\Seller\ProductPricingV0\Dto\GetItemOffersBatchRequest;
use SellingPartnerApi\Seller\ProductPricingV0\Dto\ItemOffersRequest;
use SellingPartnerApi\Seller\ProductPricingV0\Requests\GetItemOffersBatch;
use SellingPartnerApi\Seller\ProductFeesV0\Responses\GetMyFeesEstimateResponse;
use SellingPartnerApi\Seller\SellerConnector;
use SellingPartnerApi\SellingPartnerApi;

Expand Down

0 comments on commit 315528f

Please sign in to comment.