Problem/Motivation
Deprecated function: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\node_link_report\Plugin\Block\NodeLinkReport->isAllowed() (line 895 of modules/contrib/node_link_report/src/Plugin/Block/NodeLinkReport.php)
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | Fix_for_php_8_1_deprecation.patch | 945 bytes | edmund.dunn |
Comments
Comment #2
edmund.dunn commentedMade the fix. Here is the patch.
Comment #3
swirtThanks Edmund for contributing this patch. The creation of $parsed_url is kind of a misleading name as what is being put into the variable is a scheme. Parsed_url would be appropriate if we were putting the parsed array into it, but we're just putting in the scheme, so $scheme would be more honest, then just reassign it after the strtolower.
Comment #5
swirtCommitted with the variable name changed to scheme. Thank you for the contribution in preparation for php 8