- Issue created by @claudiu.cristea
- 🇵🇱Poland alorenc Wolsztyn, 🇵🇱
Changing it does not harm anything, so it is acceptable.
In our project we have the following failure uploading a file:
Error: Cannot initialize readonly property Drupal\babel\BabelLocaleTranslation::$babelStorage from scope Drupal\locale\LocaleTranslation in Drupal\locale\LocaleTranslation->__wakeup() (line 81 of core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php).
unserialize() (Line: 21)
Drupal\Component\Serialization\PhpSerialize::decode()
array_map() (Line: 79)
Drupal\Core\KeyValueStore\DatabaseStorageExpirable->getMultiple() (Line: 35)
Drupal\Core\KeyValueStore\StorageBase->get() (Line: 150)
Drupal\Core\Form\FormCache->loadCachedFormState() (Line: 123)
Drupal\Core\Form\FormCache->getCache() (Line: 456)
Drupal\Core\Form\FormBuilder->getCache() (Line: 270)
...
We need to relax the "readonly" directive until there will be a way to serialize such classes
Active
1.0
Code
Changing it does not harm anything, so it is acceptable.