Problem/Motivation

The following warning is showing in the logs when running the attachment migration:

Deprecated function: call_user_func() expects parameter 1 to be a valid callback, non-static method Drupal\Core\File\FileSystem::basename() should not be called statically in Drupal\migrate\Plugin\migrate\process\Callback->transform() (line 66 of /app/web/core/modules/migrate/src/Plugin/migrate/process/Callback.php)

Steps to reproduce

- Run the attachment migration
- Watch the logs

Proposed resolution

- Fix the warning by using regular basename callable instead of the one from FileSystem which is not a static method

Remaining tasks

Review

User interface changes

None

API changes

None

Data model changes

None

Comments

phjou created an issue. See original summary.

phjou’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new502 bytes

  • HongPong committed ef7bdd5 on 8.x-3.x authored by phjou
    Issue #3176089 by phjou: Warning when running attachment migration
    
hongpong’s picture

Thank you for tracking this down phjou, it is committed.

hongpong’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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