Skip to content

Commit 153ad50

Browse files
blueochrispenny
authored andcommitted
allow setting key to null
currently even though `$this->key` is nullable, the setter cannot set the key to `null` because of the argument type
1 parent 00fc48a commit 153ad50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DataTransferObjects/CacheKeyDto.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function getKey(): ?string
1313
return $this->key;
1414
}
1515

16-
public function setKey(string $key): void
16+
public function setKey(?string $key): void
1717
{
1818
$this->key = $key;
1919
}

0 commit comments

Comments
 (0)