Skip to content

Fix rsync uploads on PHP 8.6 - #4278

Open
joelpittet wants to merge 1 commit into
deployphp:masterfrom
joelpittet:patch-1
Open

joelpittet wants to merge 1 commit into
deployphp:masterfrom
joelpittet:patch-1

Conversation

@joelpittet

Copy link
Copy Markdown
Contributor

Problem/Motivation

My mac bumped me through homebrew (I will work around this by bumping it back down for now) but thought I'd get a jump on this:

task deploy:rsync
[host01] Uploading 'vendor'
[host01]  ErrorException  in helpers.php on line 282:
[host01]
[host01]   Function is_integer() is deprecated since 8.6, use is_int() instead
[host01]
[host02] Uploading 'vendor'
[host02]  ErrorException  in helpers.php on line 282:
[host02]
[host02]   Function is_integer() is deprecated since 8.6, use is_int() instead

Proposed Solution

Replace is_integer() with the equivalent is_int() in rsync_rsh(). PHP 8.6 deprecates is_integer(), and Deployer turns the deprecation into an ErrorException while building the SSH command, before rsync starts.

This branch has not been deployed

No deployments
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.

1 participant