➜ drupal8 git:(8.7.x) ✗ drupal-check modules/contrib/flysystem
58/58 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ---------------------------------------------------------
Line src/Asset/AssetDumper.php
------ ---------------------------------------------------------
29 Call to deprecated function file_prepare_directory().
30 Call to deprecated function file_unmanaged_save_data().
42 Call to deprecated function file_unmanaged_save_data().
------ ---------------------------------------------------------
------ ------------------------------------------------------
Line src/Asset/CssCollectionOptimizer.php
------ ------------------------------------------------------
27 Call to deprecated function file_unmanaged_delete().
------ ------------------------------------------------------
------ ------------------------------------------------------
Line src/Asset/JsCollectionOptimizer.php
------ ------------------------------------------------------
26 Call to deprecated function file_unmanaged_delete().
------ ------------------------------------------------------
------ -------------------------------------------------------------------------
Line tests/src/Unit/Asset/JsCollectionOptimizerTest.php
------ -------------------------------------------------------------------------
67 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase.
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line tests/src/Unit/EventSubscriber/EnsureSubscriberTest.php
------ -------------------------------------------------------------------------
25 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase.
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line tests/src/Unit/FlysystemFactoryTest.php
------ -------------------------------------------------------------------------
59 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase.
------ -------------------------------------------------------------------------
------ -------------------------------------------------------------------------
Line tests/src/Unit/Plugin/FlysystemPluginManagerTest.php
------ -------------------------------------------------------------------------
22 Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase.
------ -------------------------------------------------------------------------
------ ---------------------------------------------------------
Line tests/src/Unit/Plugin/ImageStyleGenerationTraitTest.php
------ ---------------------------------------------------------
43 Fetching class constant class of deprecated class
Drupal\Core\Entity\EntityManagerInterface.
------ ---------------------------------------------------------
[ERROR] Found 10 errors
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | flysystem-3060423-5-8.8.0-beta1.patch | 10.47 KB | dieterholvoet |
| #3 | flysystem-3060423-3-8.8.0-beta1.patch | 6.97 KB | dieterholvoet |
| #2 | d9_deprecated_code_3060423-2.patch | 7.04 KB | sergiu stici |
Comments
Comment #2
sergiu stici commentedHere is the patch, please review.
Comment #3
dieterholvoet commentedYou can use use the injected filesystem service of the parent classes.
Comment #4
vijaycs85Thanks @DieterHolvoet. Looks like we still have 5 more issues to fix:
Comment #5
dieterholvoet commentedI fixed all other issues except for the test, since I'm not really familiar with Drupal testing.
Comment #6
jungleI am marking this as fixed and giving credit to everyone as this was fixed by other issues already. Thanks!