Refining type of producing a string that can be declared as non-empty-string

This commit is contained in:
Marco Pivetta
2020-01-29 17:48:40 +01:00
committed by Ben Ramsey
parent 2108274b4a
commit 598b47d07f
9 changed files with 93 additions and 0 deletions
+3
View File
@@ -65,6 +65,9 @@ class StringCodec implements CodecInterface
/**
* @psalm-pure
* @psalm-return non-empty-string
* @psalm-suppress MoreSpecificReturnType we know that the retrieved `string` is never empty
* @psalm-suppress LessSpecificReturnStatement we know that the retrieved `string` is never empty
*/
public function encodeBinary(UuidInterface $uuid): string
{