22/22 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ ----------------------------------------------------------------
Line layout_builder_asset.install
------ ----------------------------------------------------------------
17 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().
32 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/Form/LayoutBuilderAssetDuplicateCssForm.php
------ ----------------------------------------------------------------------------------------------------------------------------------
Class Drupal\layout_builder_asset\Form\LayoutBuilderAssetDuplicateForm was not found while trying to analyse it - autoloading is
probably not configured properly.
------ ----------------------------------------------------------------------------------------------------------------------------------

------ ----------------------------------------------------------------
Line src/LayoutBuilderAssetFileStorage.php
------ ----------------------------------------------------------------
57 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().
58 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().
66 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().
67 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().
80 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().
121 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().
129 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().
------ ----------------------------------------------------------------

[ERROR] Found 10 errors

Comments

Deeksha B created an issue. See original summary.

Deeksha B’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new4.6 KB

I have removed the Deprecated report. Please review the patch.

  • hash6 committed 5867d14 on 8.x-1.x authored by Deeksha B
    Issue #3098113 by Deeksha B: Deprecated Code Report
    

  • hash6 committed dafe9c7 on 8.x-1.x
    Revert "Issue #3098113 by Deeksha B: Deprecated Code Report"
    It gives...
hash6’s picture

Status: Needs review » Needs work

@Deeksha B
Please fix the error caused due to additional argument passed to the constructor

ArgumentCountError: Too few arguments to function Drupal\layout_builder_asset\LayoutBuilderAssetFileStorage::__construct(), 1 passed in /modules/contrib/layout_builder_asset/src/Entity/LayoutBuilderAssetBase.php on line 95 and exactly 2 expected in Drupal\layout_builder_asset\LayoutBuilderAssetFileStorage->__construct() (line 45 of modules/contrib/layout_builder_asset/src/LayoutBuilderAssetFileStorage.php).

Maybe we can
1. add the class LayoutBuilderAssetFileStorage as a service.
2. or use setter injection.

hash6’s picture

Created a separate issue for adding LayoutBuilderAssetFileStorage class as a service https://www.drupal.org/project/layout_builder_asset/issues/3099917

naresh_bavaskar’s picture

Assigned: Unassigned » naresh_bavaskar
naresh_bavaskar’s picture

Assigned: naresh_bavaskar » Unassigned
Status: Needs work » Needs review
StatusFileSize
new5.18 KB

Please review.

naresh_bavaskar’s picture

StatusFileSize
new5.19 KB

Please find the updated patch.

kishor_kolekar’s picture

Assigned: Unassigned » kishor_kolekar

kishor_kolekar’s picture

Status: Needs review » Fixed

Thanks for your Contribution.

Status: Fixed » Closed (fixed)

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