You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PropertyGetterTask: a scalar input throws an uncaught TypeError, bypassing the error_strategy #239
PropertyGetterTask only catches \Exception: on a scalar input, the TypeError thrown by the PropertyAccessor escapes execute(), so the property error context is not set and the task error_strategy is bypassed. The reference documentation states that "if the value cannot be read, the exception is set on the state (with the property added to the error context) and handled according to the task error_strategy".
TypeError: Symfony\Component\PropertyAccess\PropertyAccessor::getValue(): Argument #1 ($objectOrArray) must be of type object|array, string given, called in src/Task/PropertyGetterTask.php on line 40
Expected: the TypeError is set on the state, with property: '[sku]' in the error context.
Reproduced on main (ad31c1f), PHP 8.5, Symfony 8.1, by calling the task / transformer directly. Found while adding the missing tests of #197.
Activity
Merge pull request #246 from cleverage/239