mirror of
https://github.com/ramsey/uuid.git
synced 2026-06-17 16:26:51 +03:00
Refining type of producing a string that can be declared as non-empty-string
This commit is contained in:
committed by
Ben Ramsey
parent
2108274b4a
commit
598b47d07f
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user