Skip to content

Fix DependencySerializationTrait private property errors - #26

Merged
jjroelofs merged 1 commit into
1.1.xfrom
jur/1.1.x/fix-drupal-check-private-properties
Aug 7, 2026
Merged

Fix DependencySerializationTrait private property errors#26
jjroelofs merged 1 commit into
1.1.xfrom
jur/1.1.x/fix-drupal-check-private-properties

Conversation

@jjroelofs

Copy link
Copy Markdown
Contributor

Summary

  • Change private to protected for constructor-promoted properties in AnalyzeBatchForm and AnalyzeBatchService
  • The DependencySerializationTrait does not support private properties
  • The readonly modifier is incompatible when the trait is used by a parent class (FormBase)
  • Also fixes an em-dash in a comment

Test plan

  • Verify drupal-check CI passes
  • Verify batch form and batch service still function correctly

Change private to protected for constructor-promoted properties
in AnalyzeBatchForm and AnalyzeBatchService. The trait does not
support private properties, and readonly is incompatible when the
trait is used by a parent class.
@jjroelofs
jjroelofs merged commit 2d79f48 into 1.1.x Aug 7, 2026
3 checks passed
@jjroelofs
jjroelofs deleted the jur/1.1.x/fix-drupal-check-private-properties branch August 7, 2026 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant