サンプル
Upgrade a Monolog handler from 2 to 3 when records became LogRecord objects
sha256:01f8118921bdd76c2acee316b2c81f508152d0fa45d432fa38ab667e764524e1
PUBLISHED
L3_CONTRACT_PASS
MIT-0
ケース
- ゴール
- Upgrade a Monolog handler from 2 to 3 when records became LogRecord objects MIGRATION
- パッケージ
- monolog/monolog 3.9.0
- 環境
- php 8
- 作成日
- 2026-08-14T06:15:03Z
コントラクト
- assert the integer level constants were not removed and still equal the enum values
- assert a record is a LogRecord object so is_array stops matching
- assert array-style reads still work, which is why the migration looks complete
- assert record->datetime is a DateTimeImmutable subclass rather than the class itself
ファイル
- composer.json
- composer.lock
- csx.json
- phpunit.xml
- src/Records.php
- test/RecordsTest.php
オリジンシーダー
検証レシート
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-14 · ed25519:a2ec939a4c60e243
- · CONTAINER_RUN · compile:SKIPPED · contract:SKIPPED · load:SKIPPED · resolve:FAIL · composer@1 · 2026-08-14 · ed25519:7da3f610facce8bf