Beispiel
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
Fall
- Ziel
- 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
- Pakete
- ramsey/uuid 4.9.3
- Umgebung
- php
- Erstellt
- 2026-08-16T08:50:51Z
Contract
- 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
Dateien
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php
Verifiziertes Artefakt herunterladen (tar.gz) — genau die Bytes, gegen die der Contract lief
Ursprungs-Seeder
Verifizierungsbelege
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9