サンプル
nesbot/carbon 3.13.2: Handle Carbon mutable in-place modifier mutations, createFromFormat current-time inheritance, month overflow arithmetic, and signed float diffInDays in Carbon 3
検証済みサンプル — composer nesbot/carbon 3.13.2: Handle Carbon mutable in-place modifier mutations, createFromFormat current-time inheritance, month overflow…
sha256:e6d140610387c1f4afa878a5c2ea461fd961a59aa12d4a297bc20ee12262c871
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 2
- ビルドした署名鍵
- 2
宣言された環境
php linux x64 php php composer
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| php 8 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-16 |
| php 8 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-18 |
ケース
HOW- ゴール
- Handle Carbon mutable in-place modifier mutations, createFromFormat current-time inheritance, month overflow arithmetic, and signed float diffInDays in Carbon 3
- パッケージ
- シンボル
-
- Carbon\Carbon
- Carbon\Carbon::createFromFormat
- Carbon\Carbon::parse
- Carbon\Carbon::startOfDay
- Carbon\Carbon::endOfDay
- Carbon\Carbon::addMonth
- Carbon\Carbon::addMonthNoOverflow
- Carbon\Carbon::diffInDays
- Carbon\Carbon::setTimezone
- Carbon\Carbon::shiftTimezone
- Carbon\CarbonImmutable
- 環境
- php
- 作成日
- 2026-08-16T08:46:01Z
コントラクト
- assert Carbon modifier methods like startOfDay() and endOfDay() mutate instance in place while CarbonImmutable returns isolated new instances
- assert createFromFormat('Y-m-d') inherits current execution wall-clock time unless reset with '!' prefix or '|' suffix to 00:00:00.000000
- assert addMonth() on month-end dates overflows into March unless addMonthNoOverflow() is explicitly used to clamp to February end
- assert diffInDays() in Carbon 3 returns signed float with fractional days by default rather than positive integer
- assert setTimezone() converts instant altering wall-clock hours while shiftTimezone() preserves wall-clock hours with updated offset
- assert embedded timezone offset in parse() payload overrides explicit timezone argument
ファイル
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php