Mikkel Ricky
Mikkel Ricky
@alterphp, I'm not sure if/how we can get ids without getting (full) objects from the collection, but we should definitely clean up the code and not make assumptions on the...
You should add --location to curl, e.g. ``` curl --location "https://raw.github.com/ptrofimov/github-backup-sh/master/github-backup.sh" | sh -s ``` This will make curl follow the redirect from https://raw.github.com/ptrofimov/github-backup-sh/master/github-backup.sh to https://raw.githubusercontent.com/ptrofimov/github-backup-sh/master/github-backup.sh.
Unless I'm missing something, it seems that `TemplateProcessor::setComplexValue()` (cf. https://github.com/PHPOffice/PHPWord/blob/0.18.2/src/PhpWord/TemplateProcessor.php#L267-L293) only replaces one (the first) occurrence whereas `TemplateProcessor::setValue()` replaces *all* occurrences. However, this is not documented clearly in neither https://phpword.readthedocs.io/en/latest/templates-processing.html#setcomplexvalue...
https://github.com/PHPOffice/PHPWord/issues/2038 has been labeled “WontFix”.