Skip to content

#239 - Fix PropertyGetterTask: a scalar input bypassed the error_strategy - #246

Merged
njoubert-cleverage merged 2 commits into
mainfrom
239
Oct 9, 2026
Merged

njoubert-cleverage merged 2 commits into
mainfrom
239

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #239.

PropertyGetterTask only caught \Exception: on a scalar input, the TypeError thrown by the PropertyAccessor escaped execute(), so the property error context was not set and the task error_strategy was bypassed.

PHPUnit (802 tests), PHPStan, PHP-CS-Fixer and Rector pass, and the changed files are valid PHP 8.2.

Requirements

  • Documentation updates
    • Reference
    • Cookbooks
    • Changelog
  • Unit tests

Breaking changes

None: this case currently ends with an uncaught TypeError; it now follows the documented error handling.

🤖 Generated with Claude Code

njoubert-cleverage and others added 2 commits October 9, 2026 10:44
…t the `TypeError` of the property accessor on a scalar input is set on the state (with the `property` error context) and handled according to the task `error_strategy` instead of escaping it. Update documentation, add tests.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage
njoubert-cleverage merged commit 136fff9 into main Oct 9, 2026
17 checks passed
@njoubert-cleverage
njoubert-cleverage deleted the 239 branch October 9, 2026 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PropertyGetterTask: a scalar input throws an uncaught TypeError, bypassing the error_strategy

1 participant