Problem/Motivation

content_sync 5.0.x-dev on Drupal Core 11.4.5, when content_sync is enabled it gives an incompatibility error when using drush.

Steps to reproduce

1. Install Drupal core 11.4.5, install drush (^13.7), install content_sync but do not enable
2. typing drush in the terminal gives the default drush help
3. enable content_sync
4. type drush in the terminal
5. PHP Fatal error: Declaration of Drupal\content_sync\Normalizer\EntityReferenceFieldItemNormalizer::normalize($field_item, $format = null, array $context = []): ArrayObject|array|string|int|float|bool|null must be compatible with Drupal\serialization\Normalizer\ComplexDataNormalizer::normalize($object, $format = null, array $context = []): array in /var/www/vhosts/leidenvirtueel.nl/httpdocs/drupalcore/web/modules/contrib/content_sync/src/Normalizer/EntityReferenceFieldItemNormalizer.php on line 48

Proposed resolution

Check where this incompatibility must be fixed.

Comments

marcelboere created an issue. See original summary.

marcelboere’s picture

Issue summary: View changes
marcelboere’s picture

This might be an incompatibility with Drush however: https://www.drush.org/13.x/install/ but the 14 branch are -dev branches which are not installed by default I guess?

Drush 14 8.3+ TBD ✅11.3+ ✅
Drush 13 8.3+ TBD ✅10.2+ ✅

I will try the latest dev version and report back here.

Unfortunately this is not possible in my setup right now:

Problem 1
- Root composer.json requires drush/drush ^14.x-dev -> satisfiable by drush/drush[14.x-dev].
- drush/drush 14.x-dev requires grasmash/yaml-cli 4.x-dev -> found grasmash/yaml-cli[4.x-dev] but it does not match your minimum-stability.

It is fixed by using drush 13.x-dev for now :)

marcelboere’s picture

Title: Bug when using drush » Bug when using drush (fixed when using drush 13.x-dev)