The \Drupal\migrate\Plugin\migrate\process\Migration class uses a $migration property but the property is not part of the class definition. It should be.

Comments

kasperg created an issue. See original summary.

kasperg’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

Here is a simple patch, which adds the property definition.

cilefen’s picture

Title: Migration property not defined » Migration property not defined in Drupal\migrate\Plugin\migrate\process\Migration
Version: 8.2.x-dev » 8.3.x-dev
Status: Needs review » Reviewed & tested by the community
xjm’s picture

Version: 8.3.x-dev » 8.2.x-dev
Related issues: +#2810347: [policy, no patch] Mark migrate.module as beta stability
StatusFileSize
new1.19 KB

Thanks @kasperg, good catch!

This is technically changing the visibility of this property from public to protected (yep, how annoying that undeclared properties are public by default). I confirmed in my IDE that there are no core usages outside this class, but technically, it's a BC break.

However, since migrate is still almost-but-not-quite in beta, we are okay to make this change in 8.3.x without a BC layer and in 8.2.x as well. (See #2810347: [policy, no patch] Mark migrate.module as beta stability.)

For some reason there is not a passing test run attached to this patch, so reuploading it for a test run before committing.

  • xjm committed 408f21e on 8.3.x
    Issue #2825088 by kasperg: Migration property not defined in Drupal\...

  • xjm committed bc6320c on 8.2.x
    Issue #2825088 by kasperg: Migration property not defined in Drupal\...
xjm’s picture

Status: Reviewed & tested by the community » Fixed

Committed 408f21e and pushed to 8.3.x and 8.2.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.