Skip to content

fix(task) #18 ZipTask and UnzipTask: explicit error on a non-array input - #22

Merged
njoubert-cleverage merged 1 commit into
17from
18
Sep 30, 2026
Merged

njoubert-cleverage merged 1 commit into
17from
18

Conversation

@njoubert-cleverage

@njoubert-cleverage njoubert-cleverage commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

Description

Fixes #18. Based on #21 (merge #19, #20 and #21 first, this PR will then target main).

ZipTask and UnzipTask only accept an array or null input; any other input (typically a string path from a previous task) made them fail later with an unrelated error (Trying to access array offset on null in debug mode, a TypeError otherwise).

  • ZipTask::execute(), UnzipTask::execute(): throw an \UnexpectedValueException giving the received type (UnzipTask expects an array or null input, string given)
  • ZipTaskTest, UnzipTaskTest: string input (fails without the fix)
  • zip_task.md, unzip_task.md: document the exception in "Accepted inputs"

Checked with demo.archive.unzip_invalid_input in process-bundle-demo.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None: these inputs already made the task fail, only the exception changes.

🤖 Generated with Claude Code

…Exception on a non-array input

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@njoubert-cleverage njoubert-cleverage added the bug Something isn't working label Sep 30, 2026
@njoubert-cleverage njoubert-cleverage self-assigned this Sep 30, 2026
@njoubert-cleverage
njoubert-cleverage merged commit 08f156d into 17 Sep 30, 2026
17 checks passed
njoubert-cleverage added a commit that referenced this pull request Sep 30, 2026
…stacked base branches)

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant