7/7 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ ----------------------------------------------------------------
Line src/UniversalFileOperations.php
------ ----------------------------------------------------------------
145 Call to deprecated function file_prepare_directory():
in drupal:8.7.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\File\FileSystemInterface::prepareDirectory().
------ ----------------------------------------------------------------

[ERROR] Found 1 error

Comments

joy29 created an issue. See original summary.

rudranil29’s picture

StatusFileSize
new2.71 KB

deprecated code removed

rudranil29’s picture

Assigned: rudranil29 » Unassigned
Status: Active » Needs review
adaddinsane’s picture

StatusFileSize
new3.09 KB

Good catch but you can't stick a create() method in there.

This is a service so the additional injected service needs to go in the universal_file_utils.services.yml file.

  • adaddinsane committed f078731 on 8.x-1.x
    Issue #3107227 by joy29, adaddinsane: drupal 9 deprecated code report'
    
  • adaddinsane committed 4dedcc4 on 8.x-1.x
    Fixes issue #3107227 by joy29: drupal 9 deprecated code report
    
adaddinsane’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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