Skip to content

Conversation

@shyim
Copy link
Member

@shyim shyim commented Dec 16, 2025

Adds support for a %php.bin% placeholder in hook commands and one-time task scripts. This placeholder is replaced with PHP_BINARY, ensuring the correct PHP version is used when multiple PHP versions are available on the server.

Closes #63

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings December 16, 2025 08:55
@codecov-commenter
Copy link

codecov-commenter commented Dec 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.37%. Comparing base (1226f90) to head (0fab8ee).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #65   +/-   ##
=======================================
  Coverage   96.37%   96.37%           
=======================================
  Files          36       36           
  Lines         744      744           
=======================================
  Hits          717      717           
  Misses         27       27           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link

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 adds support for a %php.bin% placeholder in hook commands and one-time task scripts, which gets replaced with the actual PHP binary path to ensure the correct PHP version is used when multiple versions are available on a server.

Key Changes

  • Implements a replaceVariables() method in ProcessHelper that substitutes %php.bin% with PHP_BINARY
  • Integrates the placeholder replacement into the runAndTail() method
  • Adds comprehensive test coverage for the new placeholder functionality

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/Helper/ProcessHelper.php Adds the replaceVariables() method and integrates it into runAndTail() to replace %php.bin% placeholder with the actual PHP binary path
tests/Helper/ProcessHelperTest.php Adds test case to verify the %php.bin% placeholder is correctly replaced with PHP_BINARY in shell commands

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

Adds support for a %php.bin% placeholder in hook commands and one-time
task scripts. This placeholder is replaced with PHP_BINARY, ensuring
the correct PHP version is used when multiple PHP versions are available
on the server.

Closes #63

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@shyim shyim force-pushed the feat/php-bin-placeholder branch from 0a047e7 to 0fab8ee Compare December 16, 2025 09:19
@shyim shyim merged commit e758509 into main Dec 16, 2025
7 checks passed
@shyim shyim deleted the feat/php-bin-placeholder branch December 16, 2025 09:36
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.

Deployment helper fails due to wrong php binary

3 participants