You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When executing the installGitRepositoryOnSite() method and setting the $wait parameter to false the following error is thrown: Unsupported operand types. Thrown in: src/Actions/ManagesSites.php line 188.
The problem is that POST /api/v1/servers/{serverId}/sites/{siteId}/git returns an empty response, causing the $site variable to be "". Then, on line 188 a new Site resource is being created using the union operator: $site + ['server_id' => $serverId]. We can't add an array to a string using the union operator. Also, should it be possible to have a site resource with only the server_id attribute?
I can make a fix, but I'm not sure what the expected behaviour should be. Make another API call to get the site resource? Something like:
Description:
When executing the
installGitRepositoryOnSite()
method and setting the$wait
parameter to false the following error is thrown:Unsupported operand types
. Thrown in:src/Actions/ManagesSites.php
line 188.The problem is that
POST /api/v1/servers/{serverId}/sites/{siteId}/git
returns an empty response, causing the$site
variable to be""
. Then, on line 188 a new Site resource is being created using the union operator:$site + ['server_id' => $serverId]
. We can't add an array to a string using the union operator. Also, should it be possible to have a site resource with only theserver_id
attribute?I can make a fix, but I'm not sure what the expected behaviour should be. Make another API call to get the site resource? Something like:
Steps To Reproduce:
Call the following method:
The text was updated successfully, but these errors were encountered: