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
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | wordpress_migrate-warning_callable-3176089-2.patch | 502 bytes | phjou |
Comments
Comment #2
phjouComment #4
hongpong commentedThank you for tracking this down phjou, it is committed.
Comment #5
hongpong commented