yiisoft/hydrator

Debug collector

Aperta

#32 aperta il 8 giu 2023

 (0 commenti) (0 reazioni) (0 assegnatari)PHP (5 fork)auto 404
good first issuestatus:ready for adoption

Metriche repository

Star
 (34 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

A collector for debugging is needed. Similar to https://github.com/yiisoft/validator/blob/master/src/Debug/ValidatorCollector.php is enough for the first iteration

In general would be nice to collect:

  • In-out hydration result: ['service', '5'] => new Model($serviceFromContainer, 5)
  • Data mutations: ['a', '5'] => new Model('abc', '555')
  • Data types mutations: '5' => 5

Guida contributor