I have checked module by drupal check and found below errors.
------ ----------------------------------------------------------------
Line fac.install
------ ----------------------------------------------------------------
15 Call to deprecated function file_unmanaged_delete_recursive():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::deleteRecursive().
------ ----------------------------------------------------------------
------ ----------------------------------------------------------------
Line fac.module
------ ----------------------------------------------------------------
115 Call to deprecated function file_unmanaged_delete_recursive():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::deleteRecursive().
------ ----------------------------------------------------------------
------ ----------------------------------------------------------------
Line src/Controller/FacController.php
------ ----------------------------------------------------------------
108 Call to deprecated function file_prepare_directory():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::prepareDirectory().
110 Call to deprecated function file_unmanaged_save_data():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::saveData().
------ ----------------------------------------------------------------
------ ----------------------------------------------------------------
Line src/Entity/FacConfig.php
------ ----------------------------------------------------------------
301 Call to deprecated function file_unmanaged_delete_recursive():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::deleteRecursive().
310 Call to deprecated function file_unmanaged_delete():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::delete().
------ ----------------------------------------------------------------
------ ----------------------------------------------------------------
Line src/Form/FacConfigDisableConfirmForm.php
------ ----------------------------------------------------------------
53 Call to deprecated function file_unmanaged_delete_recursive():
in Drupal 8.7.0, will be removed before Drupal 9.0.0.
Use \Drupal\Core\File\FileSystemInterface::deleteRecursive().
------ ----------------------------------------------------------------
------ -------------------------------------------------------------------------
Line tests/src/Unit/HashServiceTest.php
------ -------------------------------------------------------------------------
24 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase:
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.
27 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase:
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.
57 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase:
in Drupal 8.5.0 and will be removed before Drupal 9.0.0.
Use \Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.
------ -------------------------------------------------------------------------
[ERROR] Found 10 errors
Comment | File | Size | Author |
---|---|---|---|
#2 | deprecated-9-code-report-3076985.patch | 6.74 KB | B N Pandey |
Comments
Comment #2
B N Pandey CreditAttribution: B N Pandey at TO THE NEW commentedThis is the patch for issue found by drupal check.
Comment #3
B N Pandey CreditAttribution: B N Pandey at TO THE NEW commentedComment #5
Marty2081 CreditAttribution: Marty2081 at LimoenGroen commentedThanks for the patch. I've fixed some more deprecations and code style issues. Committed.