Bug report
dependencySerializationTraitProperty.unsupportedPrivateProperty reports an issue for properties that aren't relevant to DependencySerializationTrait. See #1024 for an example.
DependencySerializationTrait only looks at properties that are objects and services (by looking up the service ID from the value) https://git.drupalcode.org/project/drupal/-/blob/main/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php#L39. A property that's a scalar value (eg, bool) is trivially serializable and is ignored by the trait, but it reported by dependencySerializationTraitProperty.unsupportedPrivateProperty.
Code snippet that reproduces the problem
Example 7c0932e.
Bug report
dependencySerializationTraitProperty.unsupportedPrivatePropertyreports an issue for properties that aren't relevant toDependencySerializationTrait. See #1024 for an example.DependencySerializationTraitonly looks at properties that are objects and services (by looking up the service ID from the value) https://git.drupalcode.org/project/drupal/-/blob/main/core/lib/Drupal/Core/DependencyInjection/DependencySerializationTrait.php#L39. A property that's a scalar value (eg, bool) is trivially serializable and is ignored by the trait, but it reported bydependencySerializationTraitProperty.unsupportedPrivateProperty.Code snippet that reproduces the problem
Example 7c0932e.