Closed dalin- closed 5 years ago
It seems like #1765
FWIW this is happening for other devs on our team working on different sites.
Steps to reproduce:
terminus multidev:merge-from-dev site.multidev
Well if I hack things to convert the array to a string:
if (is_array($message)) {
$message = implode(' | ', $message);
}
Then I don't get a PHP error, but the Terminus command just fails silently.
Well if I hack things to convert the array to a string:
if (is_array($message)) {
$message = implode(' | ', $message);
}
Then I don't get a PHP error and instead get the expected error from the terminus command:
CONFLICT (content): Merge conflict in web/sites/default/config/search_api.index.stanford_hs_index.yml
Looks like there was only one element in the array.
Any progress on this? Having the same problem here.
The bug has been reopened as #1839
Steps to reproduce
terminus multidev:merge-from-dev site.multidev
Expected behavior
Merge fails and conflicts are reported.
Actual behavior
PHP Warning: strtr() expects parameter 1 to be string, array given in /Users/dave/.composer/global/pantheon-systems/terminus/vendor/pantheon-systems/terminus/src/Exceptions/TerminusException.php on line 72
Warning: strtr() expects parameter 1 to be string, array given in /Users/dave/.composer/global/pantheon-systems/terminus/vendor/pantheon-systems/terminus/src/Exceptions/TerminusException.php on line 72 [error]
If run with
-vvv
:The problem is that the exception message is an array, not a string.
Site info