Problem/Motivation

nodeImportFinishedCallback and nodeExportFinishedCallback use $this in static function which cause an error.

Steps to reproduce

Proposed resolution

Use t() instead of $this->t()

Remaining tasks

Test proposed patch.

User interface changes

none

API changes

None

Data model changes

None

CommentFileSizeAuthor
node_export_this_static_method_1.patch860 bytesjsimonet

Comments

jsimonet created an issue. See original summary.

brad.bulger’s picture

Status: Active » Closed (duplicate)
Related issues: +#3197979: "$this" can no longer be used in a plain function or method since PHP 7.1

There is a 4 year old patch in RTBC state waiting to be committed in #3197979: "$this" can no longer be used in a plain function or method since PHP 7.1

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.