Skip to content

v2.5.1

Choose a tag to compare

@hcuadra811 hcuadra811 released this 21 May 22:33
· 68 commits to main since this release

Fix _at int example regression + describe date-comparison support.

  • ExampleGenerator: drop pre-call type guard that short-circuited the faker_attribute_mapper for non-string properties, silently blocking type-aware custom functions (e.g. _at -> date). Mapper is now consulted unconditionally; the returned function is called, then the return value is validated against the property type. On mismatch or exception, fall back to the type default (0 / 0.0 / false / '').
  • buildFilterByDescription: comparison-op caveat now mentions date-string support alongside numerics.
  • Add tests/Unit/ExampleGeneratorTest.php covering custom-function routing, mismatched-return fallback, plain-faker gating, and the : prefix bypass.