- 🇮🇹Italy sepa_cleversoft
I cannot apply both #4 and #6 patch with composer. I'm using sendinblue 2.0.0, and trying patch composer gives this red error:
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2023-01-18/3330960-4-sendinblue_api_... →
This happens with both of the patches.
Drupal 9.5.2
PHP 8.1.14
sendinblue 2.0.0 - 🇮🇹Italy sepa_cleversoft
Trying with -vvv option in composer up, I'll find this error for every hunks:
4 out of 4 hunks ignored
can't find file to patch at input line 3005
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff --git a/lib/Model/GetExtendedContactDetails.php b/lib/Model/GetExtendedContactDetails.php
|index 3bd46da..ec3369c 100644
|--- a/lib/Model/GetExtendedContactDetails.php
|+++ b/lib/Model/GetExtendedContactDetails.php
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch. - 🇹🇳Tunisia Riadh Rahmi
@sepa_cleversoft you should add the patch to composer like this example:
"sendinblue/api-v3-sdk": {
"sendinblue_api_support_php81": " https://www.drupal.org/files/issues/2023-01-18/3330960-4-sendinblue_api_... → "
}because these patches are related to the library located under vendor folder not the "drupal/sendinblue" module. so check your composer.json.
- 🇫🇷France solene_ggd
@Riadh Rahm I cannot apply the #6 patch, the #4 patch still works for me. What did you change ?
- 🇹🇳Tunisia Riadh Rahmi
@solene_ggd you need just to apply one patch #6 or #4 not the both.
- 🇺🇦Ukraine losewn Lviv
Example, to install a patch
"sendinblue/api-v3-sdk": { "#3330960 - Deprecated function: Return type of SendinBlue\\Client\\Model\\SendSmtpEmailTo::offsetExists($offset)": "https://www.drupal.org/files/issues/2023-01-18/3330960-4-sendinblue_api_support_php81.patch" }
The patch is not installed for drupal/sendinblue.