Skip to content

Commit cee6054

Browse files
authored
Issue #267: Fix implicitly nullable in MigrateDestinationParagraphsItem.
1 parent d44b2bd commit cee6054

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

migrate/destinations/MigrateDestinationParagraphsItem.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,14 @@ class MigrateDestinationParagraphsItem extends MigrateDestinationEntity {
6767
/**
6868
* Returns a list of fields available to be mapped for the node type (bundle).
6969
*
70-
* @param Migration $migration
70+
* @param ?Migration $migration
7171
* Optionally, the migration containing this destination.
7272
*
7373
* @return array
7474
* Keys: machine names of the fields (to be passed to addFieldMapping)
7575
* Values: Human-friendly descriptions of the fields.
7676
*/
77-
public function fields(Migration $migration = NULL) {
77+
public function fields(?Migration $migration = NULL) {
7878
$fields = array();
7979

8080
$fields['field_name'] = t('Field name');

0 commit comments

Comments
 (0)