Skip to content

v0.3.0 — Error handling refinements

Choose a tag to compare

@Nandan108 Nandan108 released this 27 Feb 14:03
· 3 commits to main since this release

v0.3.0

v0.3.0 refines evaluation error handling and improves compatibility with PHP 8.1.

Highlights:

  • Updated custom evaluation failure handlers so they receive ExtractContext explicitly as the second argument.
  • This removes reliance on closure rebinding and improves static analysis behavior.
  • Internal error handling was refactored for clearer behavior and better compatibility.
  • ExtractContext is now part of the public surface rather than marked @internal.

Upgrade note:

  • If you pass a custom failure handler to PropPath::compile() or ExtractContext::prepareForEval(), update the callback signature to fn (string $message, ExtractContext $context): never.