Skip to content

Commit b6e1b56

Browse files
committed
Use explicit nullable types
1 parent 94abd78 commit b6e1b56

25 files changed

Lines changed: 54 additions & 54 deletions

src/Cache/CacheableServiceInterface.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public function getTtl(): DateInterval|DateTimeInterface|int|null;
8787
*
8888
* @since 1.2.0
8989
*/
90-
public function setTtl(DateInterval|DateTimeInterface|int $ttl = null): static;
90+
public function setTtl(DateInterval|DateTimeInterface|int|null $ttl = null): static;
9191

9292
/**
9393
* @return CacheItemPoolInterface|null
@@ -103,5 +103,5 @@ public function getCache(): ?CacheItemPoolInterface;
103103
*
104104
* @since 1.2.0
105105
*/
106-
public function setCache(CacheItemPoolInterface $cache = null): static;
107-
}
106+
public function setCache(?CacheItemPoolInterface $cache = null): static;
107+
}

src/Entity/Location.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,13 +127,13 @@ public function __construct(
127127
/* @param string|DateTimeInterface|null $DeliveryDate */
128128
string|DateTimeInterface|null $DeliveryDate = null,
129129
/* @param string[]|null $DeliveryOptions */
130-
array $DeliveryOptions = null,
130+
?array $DeliveryOptions = null,
131131
?string $OpeningTime = null,
132132
/* @param string[]|null $Options */
133-
array $Options = null,
134-
Coordinates $Coordinates = null,
135-
CoordinatesNorthWest $CoordinatesNorthWest = null,
136-
CoordinatesSouthEast $CoordinatesSouthEast = null,
133+
?array $Options = null,
134+
?Coordinates $Coordinates = null,
135+
?CoordinatesNorthWest $CoordinatesNorthWest = null,
136+
?CoordinatesSouthEast $CoordinatesSouthEast = null,
137137
?string $City = null,
138138
?string $Street = null,
139139
?string $HouseNr = null,

src/Entity/Response/CompleteStatusResponseShipment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ class CompleteStatusResponseShipment extends AbstractEntity
137137
*/
138138
public function __construct(
139139
/* @param StatusAddress[]|null $Addresses */
140-
array $Addresses = null,
140+
?array $Addresses = null,
141141
/* @param Amount[]|null $Amounts */
142-
array $Amounts = null,
142+
?array $Amounts = null,
143143
?string $Barcode = null,
144144
?Customer $Customer = null,
145145
DateTimeInterface|string|null $DeliveryDate = null,

src/Entity/Response/GetDeliveryDateResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class GetDeliveryDateResponse extends AbstractEntity
6060
public function __construct(
6161
string|DateTimeInterface|null $DeliveryDate = null,
6262
/* @param string[]|null $Options */
63-
array $Options = null,
63+
?array $Options = null,
6464
) {
6565
parent::__construct();
6666

src/Entity/Response/GetLocationsInAreaResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class GetLocationsInAreaResponse extends AbstractEntity
4747
*/
4848
public function __construct(
4949
/* @param GetLocationsResult|null $GetLocationsResult */
50-
GetLocationsResult $GetLocationsResult = null,
50+
?GetLocationsResult $GetLocationsResult = null,
5151
) {
5252
parent::__construct();
5353

src/Entity/Response/GetNearestLocationsResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class GetNearestLocationsResponse extends AbstractEntity
5050
/**
5151
* @param GetLocationsResult|null $GetLocationsResult
5252
*/
53-
public function __construct(GetLocationsResult $GetLocationsResult = null)
53+
public function __construct(?GetLocationsResult $GetLocationsResult = null)
5454
{
5555
parent::__construct();
5656

src/Entity/Response/GetSentDateResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class GetSentDateResponse extends AbstractEntity
5656
public function __construct(
5757
?DateTimeInterface $GetSentDate = null,
5858
/* @param string[]|null $Options */
59-
array $Options = null,
59+
?array $Options = null,
6060
) {
6161
parent::__construct();
6262

src/Entity/Response/ResponseAddress.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ public function getZipcode(): ?string
552552
*
553553
* @return static
554554
*/
555-
public function setZipcode(string $Zipcode = null): static
555+
public function setZipcode(?string $Zipcode = null): static
556556
{
557557
if (is_null(value: $Zipcode)) {
558558
$this->Zipcode = null;

src/Entity/Response/ResponseLocation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ class ResponseLocation extends AbstractEntity
133133
* @param Sustainability|null $Sustainability
134134
*/
135135
public function __construct(
136-
Address $Address = null,
136+
?Address $Address = null,
137137
/* @param string[]|null $DeliveryOptions */
138-
array $DeliveryOptions = null,
138+
?array $DeliveryOptions = null,
139139
?string $Distance = null,
140140
?string $Latitude = null,
141141
?string $Longitude = null,

src/Entity/Response/ResponseTimeframes.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class ResponseTimeframes extends AbstractEntity
5454
*/
5555
public function __construct(
5656
/* @param ReasonNoTimeframe[]|null $ReasonNoTimeframes */
57-
array $ReasonNoTimeframes = null,
57+
?array $ReasonNoTimeframes = null,
5858
/* @param Timeframe[]|null $Timeframes */
59-
array $Timeframes = null,
59+
?array $Timeframes = null,
6060
) {
6161
parent::__construct();
6262

0 commit comments

Comments
 (0)