While the content sync export is working properly, the import fails when importing the files (the entity type file).
The returned error is :
[error] TypeError: Drupal\content_sync\Normalizer\FileEntityNormalizer::denormalize(): Return value must be of type ArrayObject|array|string|int|float|bool|null, Drupal\file\Entity\File returned in Drupal\content_sync\Normalizer\FileEntityNormalizer->denormalize() (line 141 of /home/meharga/eclipse-workspaces/mmoda-staging/mmoda-st3/web/modules/contrib/content_sync/src/Normalizer/FileEntityNormalizer.php) #0 /home/meharga/eclipse-workspaces/mmoda-staging/mmoda-st3/vendor/symfony/serializer/Serializer.php(247): Drupal\content_sync\Normalizer\FileEntityNormalizer->denormalize()
drush cse -y
" (it goes smoothly)drush csi -y
" and the error raises ...The method Drupal\content_sync\Normalizer\FileEntityNormalizer->denormalize() is calling Drupal\content_sync\Normalizer\ContentEntityNormalizer->denormalize() which is calling Drupal\serialization\Normalizer\EntityNormalizer->denormalize().
The latter is returning an object while the first one is not expected to return that, an object. It is returning : array|string|int|float|bool|\ArrayObject|NULL
public function denormalize($data, $class, $format = NULL, array $serializer_context = array()): array|string|int|float|bool|\ArrayObject|NULL {
This should be replaced by :
public function denormalize($data, $class, $format = NULL, array $serializer_context = array()): mixed {
As it is the case of the first two methods :
This is already suggested in the issue : Drupal 10 compatibility update 📌 Drupal 10 compatibility update RTBC