Repository navigation
v0.3.0 — Error handling refinements
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
ExtractContextexplicitly 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.
ExtractContextis now part of the public surface rather than marked@internal.
Upgrade note:
- If you pass a custom failure handler to
PropPath::compile()orExtractContext::prepareForEval(), update the callback signature tofn (string $message, ExtractContext $context): never.