Problem/Motivation
Received the following output after running static analysis using Phan.
web/modules/contrib/pathauto/src/AliasUniquifier.php:133 PhanDeprecatedFunction
Call to deprecated function \Drupal\Core\Extension\ModuleHandlerInterface::getImplementations() defined at web/core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php:191
(Deprecated because: in drupal:9.4.0 and is removed from drupal:10.0.0. Instead you should use ModuleHandlerInterface::invokeAllWith() for hook invocations or you should use ModuleHandlerInterface::hasImplementations() to determine if hooks implementations exist.)Please see https://www.drupal.org/node/3000490
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | pathauto_deprecated_fixed.patch | 665 bytes | radheymkumar |
Issue fork pathauto-3345256
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
berdirWhat phan doesn't tell you is that is that this is in a conditional block that is only executed if the new method doesn't exist.
We can eventually remove that when we require 9.4 but there's no urgency there.
Comment #4
radheymkumar commentedHi @Berdir
I have fixed the deprecated issue please apply these are patch file.
Thanks
Comment #5
berdirThat is *not* what I'm asking for. Read the comment just above the changed line in your patch and my comment here.
Comment #6
namisha jadhav commentedAny update on this issue?
Comment #9
dwwComment #10
berdirDrupal is EOL, I'm happy to just require 9.4 at this point and drop the BC layer.
Comment #11
dwwComment #13
berdirThanks.
Comment #14
dwwYou’re welcome. Glad to help out. Thank you!