Fix Psalm errors resulting from changes introduced in 3.9.4

This commit is contained in:
Ben Ramsey
2020-03-07 15:22:00 -06:00
parent 4a53d4d33d
commit 57e3ce9dd7
19 changed files with 35 additions and 48 deletions
+2 -8
View File
@@ -18,6 +18,8 @@ use Ramsey\Uuid\UuidInterface;
/**
* A codec encodes and decodes a UUID according to defined rules
*
* @psalm-immutable
*/
interface CodecInterface
{
@@ -30,8 +32,6 @@ interface CodecInterface
* @return string Hexadecimal string representation of a UUID
*
* @psalm-return non-empty-string
*
* @psalm-pure
*/
public function encode(UuidInterface $uuid): string;
@@ -44,8 +44,6 @@ interface CodecInterface
* @return string Binary string representation of a UUID
*
* @psalm-return non-empty-string
*
* @psalm-pure
*/
public function encodeBinary(UuidInterface $uuid): string;
@@ -57,8 +55,6 @@ interface CodecInterface
*
* @return UuidInterface An instance of a UUID decoded from a hexadecimal
* string representation
*
* @psalm-pure
*/
public function decode(string $encodedUuid): UuidInterface;
@@ -70,8 +66,6 @@ interface CodecInterface
*
* @return UuidInterface An instance of a UUID decoded from a binary string
* representation
*
* @psalm-pure
*/
public function decodeBytes(string $bytes): UuidInterface;
}