示例
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