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)

CommentFileSizeAuthor
#2 Fix_for_php_8_1_deprecation.patch945 bytesedmund.dunn

Comments

edmund.dunn created an issue. See original summary.

edmund.dunn’s picture

StatusFileSize
new945 bytes

Made the fix. Here is the patch.

swirt’s picture

Thanks 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.

  • swirt committed 79c9c8f on 8.x-1.x
    Issue #3308887 by edmund.dunn, swirt: PHP 8.1 Strtolower no longer...
swirt’s picture

Status: Active » Fixed

Committed with the variable name changed to scheme. Thank you for the contribution in preparation for php 8

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.