サンプル
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
ケース
- ゴール
- 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
- パッケージ
- ramsey/uuid 4.9.3
- 環境
- php
- 作成日
- 2026-08-16T08:50:51Z
コントラクト
- 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
ファイル
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php
検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列
オリジンシーダー
検証レシート
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9