Skip to content

Next#338

Merged
ADmad merged 9 commits intomasterfrom
next
Mar 15, 2026
Merged

Next#338
ADmad merged 9 commits intomasterfrom
next

Conversation

@ADmad
Copy link
Copy Markdown
Member

@ADmad ADmad commented Mar 15, 2026

No description provided.

@ADmad ADmad requested a review from Copilot March 15, 2026 14:06
@ADmad ADmad marked this pull request as draft March 15, 2026 14:07
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a new WeasyPrintEngine PDF backend for CakePdf, updates CI to install/run it, and refreshes docs + Psalm configuration to align with the new “next” direction.

Changes:

  • Add WeasyPrintEngine implementation and corresponding PHPUnit coverage.
  • Update CI to install weasyprint and adjust PHPUnit invocation behavior.
  • Update README and tweak CakePdf docblocks + Psalm config/baseline.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
src/Pdf/Engine/WeasyPrintEngine.php New engine: builds CLI command, executes weasyprint, and resolves binary path.
tests/TestCase/Pdf/Engine/WeasyPrintEngineTest.php New test coverage for weasyprint command generation and binary path errors.
tests/TestCase/Pdf/Engine/WkHtmlToPdfEngineTest.php Test adjustments around _getCommand() reflection access.
src/Pdf/CakePdf.php Docblock return type changes for fluent getters/setters.
README.md Document WeasyPrint as included/recommended and update configuration examples.
psalm.xml Update Psalm configuration (error level + issue handlers).
psalm-baseline.xml Refresh baseline for newer Psalm output.
.github/workflows/ci.yml Install weasyprint on CI and adjust PHPUnit flags for the PHP 8.5 job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@ADmad ADmad marked this pull request as ready for review March 15, 2026 15:52
@ADmad ADmad merged commit e7569aa into master Mar 15, 2026
6 checks passed
@ADmad ADmad deleted the next branch March 15, 2026 15:53
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.

3 participants