Problem/Motivation

Deprecation report obtained running drupal-check over the following version
Source: https://git.drupalcode.org/project/geofield_map/commit/a2368a42dd7e9ea9488d560c08947d52cc57d546

wodby@php.container:/var/www/html $ vendor/bin/drupal-check web/modules/contrib/geofield
_map
 42/42 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

 ------ ----------------------------------------------------
  Line   src/Services/MarkerIconService.php
 ------ ----------------------------------------------------
  156    Call to deprecated function file_scan_directory().
  159    Call to deprecated function file_scan_directory().
 ------ ----------------------------------------------------


 [ERROR] Found 2 errors


 

Proposed resolution

Replace procedural calls with injected service.

Remaining tasks

Provide a patch

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

None

CommentFileSizeAuthor
#2 drupal_9_deprecation_3108809-2.patch3.24 KBd70rr3s

Comments

d70rr3s created an issue. See original summary.

d70rr3s’s picture

StatusFileSize
new3.24 KB
d70rr3s’s picture

Assigned: d70rr3s » Unassigned
Status: Active » Needs review

  • d70rr3s authored cd41e51 on 8.x-2.x
    Issue #3108809 by d70rr3s: Drupal 9 Deprecated Code Report
    
itamair’s picture

Status: Needs review » Fixed

Committed into dev, will be part of the next release.

Status: Fixed » Closed (fixed)

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