CONTRIBUTED PROJECTS
--------------------------------------------------------------------------------
Media entity Flickr
Scanned on Mon, 24/05/2021 - 22:52.

14 errors found. 1 warning found. Avoid some manual work by using drupal-rector
for fixing issues automatically or Upgrade Rector to generate patches.

modules/contrib/media_entity_flickr/media_entity_flickr.install:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix with │ 14 │ Call to deprecated constant FILE_CREATE_DIRECTORY: │
│ rector │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use Drupal\Core\File\FileSystemInterface::CREATE_DIRECTORY. │
│ │ │ │
│ Fix with │ 14 │ Call to deprecated constant FILE_MODIFY_PERMISSIONS: │
│ rector │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use │
│ │ │ Drupal\Core\File\FileSystemInterface::MODIFY_PERMISSIONS. │
│ │ │ │
│ Fix with │ 14 │ Call to deprecated function file_prepare_directory(). │
│ rector │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use │
│ │ │ Drupal\Core\File\FileSystemInterface::prepareDirectory(). │
│ │ │ │
│ Fix with │ 18 │ Call to deprecated function file_scan_directory(). │
│ rector │ │ Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. │
│ │ │ Use Drupal\Core\File\FileSystemInterface::scanDirectory() │
│ │ │ instead. │
│ │ │ │
│ Fix now │ 28 │ Call to deprecated constant FILE_EXISTS_ERROR: Deprecated in │
│ │ │ drupal:8.7.0 and is removed from drupal:9.0.0. Use │
│ │ │ Drupal\Core\File\FileSystemInterface::EXISTS_ERROR. │
│ │ │ │
│ Fix now │ 28 │ Call to deprecated function file_unmanaged_copy(). │
│ │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use Drupal\Core\File\FileSystemInterface::copy(). │
│ │ │ │
│ Fix with │ 50 │ Call to deprecated constant FILE_CREATE_DIRECTORY: │
│ rector │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use Drupal\Core\File\FileSystemInterface::CREATE_DIRECTORY. │
│ │ │ │
│ Fix with │ 50 │ Call to deprecated constant FILE_MODIFY_PERMISSIONS: │
│ rector │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use │
│ │ │ Drupal\Core\File\FileSystemInterface::MODIFY_PERMISSIONS. │
│ │ │ │
│ Fix with │ 50 │ Call to deprecated function file_prepare_directory(). │
│ rector │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use │
│ │ │ Drupal\Core\File\FileSystemInterface::prepareDirectory(). │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

modules/contrib/media_entity_flickr/src/Plugin/media/Source/Flickr.php:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Fix with │ 166 │ Call to deprecated constant FILE_CREATE_DIRECTORY: │
│ rector │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use Drupal\Core\File\FileSystemInterface::CREATE_DIRECTORY. │
│ │ │ │
│ Fix with │ 166 │ Call to deprecated constant FILE_MODIFY_PERMISSIONS: │
│ rector │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use │
│ │ │ Drupal\Core\File\FileSystemInterface::MODIFY_PERMISSIONS. │
│ │ │ │
│ Fix with │ 166 │ Call to deprecated function file_prepare_directory(). │
│ rector │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use │
│ │ │ Drupal\Core\File\FileSystemInterface::prepareDirectory(). │
│ │ │ │
│ Fix with │ 174 │ Call to deprecated constant FILE_EXISTS_REPLACE: Deprecated │
│ rector │ │ in drupal:8.7.0 and is removed from drupal:9.0.0. Use │
│ │ │ Drupal\Core\File\FileSystemInterface::EXISTS_REPLACE. │
│ │ │ │
│ Fix with │ 174 │ Call to deprecated function file_unmanaged_save_data(). │
│ rector │ │ Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. │
│ │ │ Use Drupal\Core\File\FileSystemInterface::saveData(). │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

modules/contrib/media_entity_flickr/media_entity_flickr.info.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Check │ 0 │ Add core_version_requirement: ^8 || ^9 to designate that the │
│ manually │ │ module is compatible with Drupal 9. See │
│ │ │ https://drupal.org/node/3070687. │
│ │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘

Comments

gigimaor created an issue. See original summary.

gigimaor’s picture

Issue summary: View changes
StatusFileSize
new4.13 KB

Suggested fix

gigimaor’s picture

StatusFileSize
new4.17 KB
davidhk’s picture

After applying patch #3 I'm successfully using the module with Drupal 9, thank you.

guilhermevp’s picture

Version: 8.x-4.0-alpha4 » 8.x-4.x-dev
Status: Active » Needs review
StatusFileSize
new4.1 KB

Just re-rolled against dev-version, where patches should be applied, even if this turn into a new branch, dev are the most recent version.