Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The drupal-check return one error for the stream_wrapper_example module.
------ ------------------------------------------------------------------------------
Line stream_wrapper_example/src/StreamWrapper/SessionStreamWrapper.php
------ ------------------------------------------------------------------------------
156 \Drupal calls should be avoided in classes, use dependency injection instead
------ ------------------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#3 | fix_deprecations-3091440-3.patch | 2.19 KB | alt.dev |
Comments
Comment #2
alt.dev CreditAttribution: alt.dev at DevBranch commentedHere is a patch which should fix the error.
Comment #3
alt.dev CreditAttribution: alt.dev at DevBranch commentedAccidentally added unnecessary changes to my last patch. Here I remove theme.
Comment #5
valthebaldCommitted to 8.x-1.x, thank you!