Exemplo
Registering class mixins on Carbon and CarbonImmutable with explicit Closure return type hints requires version 3.11.3+ to prevent reflection from skipping macro registration
sha256:6656d05765ce95a36ec3ba27e1ee3a5d19e07d174e99b805e672f96f310e2bd0
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Caso
- Objetivo
- Registering class mixins on Carbon and CarbonImmutable with explicit Closure return type hints requires version 3.11.3+ to prevent reflection from skipping macro registration HOW
- Pacotes
- nesbot/carbon 3.11.3
- Ambiente
- php
- Criado
- 2026-08-16T08:49:56Z
Contrato
- assert Carbon::mixin registers methods declaring : Closure return type hint as macros
- assert CarbonImmutable::mixin registers methods declaring : Closure return type hint as macros
- assert invoking : Closure macro on Carbon instance mutates and returns Carbon instance
- assert invoking : Closure macro on CarbonImmutable instance returns new instance without mutating original
- assert mixin methods declaring : callable return type hint are registered and callable
- assert untyped mixin methods are registered and callable
- assert non-callable helper methods returning primitive types like : int or : string are excluded from macro registration
Arquivos
- NOTES.md
- composer.json
- composer.lock
- csx.json
- src/CustomDateMixin.php
- test/contract.php
Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou
Seeder de origem
Recibos de verificação
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9