Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Based the egg & stub example, i create egg-stub concept,
EX: protected function createStub($migration, array $source_id) , its throws warning error.
Strict warning: Declaration of DrupalNode7ArticleMigration::createStub() should be compatible with DrupalNodeMigration::createStub($migration) in require_once() (line 10 of sites/all/modules/custom/migration/classfiles/articles/article.inc).
How to fix this warning error.
Regards,
tssarun.
Comment | File | Size | Author |
---|---|---|---|
#4 | node_createstub_missing_source_key_argument-2686771-4.patch | 467 bytes | anrikun |
Comments
Comment #2
tssarun CreditAttribution: tssarun commentedComment #3
Ben Buske CreditAttribution: Ben Buske at werk21 commentedI think the error message requests that other functions that try to use the createStub function like it is possible with the parent won't get an error. With a default value like that i don't get the error anymore.
Comment #4
anrikun CreditAttribution: anrikun commentedHere's a simple patch fixing createStub() declaration.
Comment #5
krisahil CreditAttribution: krisahil commentedThis patch fixes the strict warning for me.