Exemple
In ramsey/uuid 4.x, Uuid::fromString returns a LazyUuidFromString instance implementing UuidInterface rather than a Uuid class instance, while getHex returns a Hexadecimal value object that silently fails strict string equality checks
sha256:4b368ea99675717bf5154051b96c906c45dd5bf59de8bfe4b59a99a55140cac3
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Cas
- Objectif
- In ramsey/uuid 4.x, Uuid::fromString returns a LazyUuidFromString instance implementing UuidInterface rather than a Uuid class instance, while getHex returns a Hexadecimal value object that silently fails strict string equality checks HOW
- Paquets
- ramsey/uuid 4.9.3
- Environnement
- php
- Créé
- 2026-08-16T08:50:51Z
Contrat
- Uuid::fromString returns a LazyUuidFromString instance that implements UuidInterface but does NOT inherit from Uuid
- UuidInterface::getHex returns a Ramsey\Uuid\Type\Hexadecimal value object where is_string is false and strict comparison with a string returns false
- UuidInterface::getInteger returns a Ramsey\Uuid\Type\Integer value object rather than a string or integer primitive
- UuidInterface::getDateTime returns a DateTimeImmutable instance that implements DateTimeInterface but does not inherit from mutable DateTime
- Uuid::isValid rejects 32-character unhyphenated hexadecimal UUID strings even though Uuid::fromString successfully parses them
Fichiers
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php
Télécharger l'artefact vérifié (tar.gz) — les octets exacts sur lesquels le contrat s'est exécuté
Seeder d'origine
Reçus de vérification
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9