php drupal-check.phar modules/contrib/file_replace/
4/4 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ----------------------------------------------------
Line src/Form/FileReplaceForm.php
------ ----------------------------------------------------
81 Call to deprecated function file_unmanaged_copy().
------ ----------------------------------------------------
[ERROR] Found 1 error| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3084129-d9-compatibility-deprecated-code-reportd-8.patch | 1.65 KB | dydave |
| #4 | interdiff-3084129-2-4-do-not-test.diff | 1.81 KB | daniel korte |
| #4 | deprecated-3084129-4.patch | 1.62 KB | daniel korte |
| #2 | deprecated-3084129-2.patch | 1.57 KB | sergiu stici |
Comments
Comment #2
sergiu stici commentedHere is the patch, please review.
Comment #3
fjgarlin commentedI checked this code and got the following error when visiting a replace page for a file:
Without the patch I get to see the page without errors.
Comment #4
daniel korteThe error in #3 is because the dependency injection is not handled properly in the patch from #2, but I don't think dependency injection is really necessary here. Also, adding the core_version_requirement key to the info file.
Comment #5
daniel korteComment #6
dydave commentedComment #7
dydave commentedComment #8
dydave commentedHi Everyone!
Thanks for contributing this patch.
I have tested the changes #4, overall they seem to work fine and fix the issue.
Just one thing:
core: 8.xcan to be removed from theinfo.ymlfile, when addingcore_version_requirement, see for example: pathauto.info.yml.Please find attached a re-roll from from patch in #4, which removes the line
core: 8.x:3084129-d9-compatibility-deprecated-code-reportd-8.patch.
Any suggestions, feedback, comments, reporting and testing, would be greatly appreciated.
Thanks in advance!
Comment #9
bryandenijsLatest patch looks good! Tested it and it works.
Thanks for the patch!
Comment #11
casey commentedCommitted, thanks!
Comment #12
dydave commentedThanks Casey for your help getting this in.
Cheers!