Skip to content

#345 - YamlWriterTask: fail when the file cannot be written - #346

Open
njoubert-cleverage wants to merge 1 commit into
mainfrom
345
Open

njoubert-cleverage wants to merge 1 commit into
mainfrom
345

Conversation

@njoubert-cleverage

Copy link
Copy Markdown
Member

Description

Fixes #345.

  • YamlWriterTask creates the parent directory of file_path if needed (same code as JsonStreamFile).
  • A failure of file_put_contents() throws a RuntimeException (with the PHP error message) instead of a warning, which was an exception in debug mode only: in production, the path was output as if the file had been written.
  • Documentation and tests.

Requirements

  • Documentation updates
    • Reference
    • Changelog
  • Unit tests

Breaking changes

None: a missing parent directory is created instead of failing.

🤖 Generated with Claude Code

…be written instead of outputting its path, and create the parent directory if needed. Update documentation, add tests.

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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YamlWriterTask: a write failure is ignored, the path is output as if the file had been written

1 participant