Logging in causes the error,

Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in Drupal\Component\Utility\UrlHelper::isExternal() (line 216 of core/lib/Drupal/Component/Utility/UrlHelper.php).

Comments

Steven McCoy created an issue. See original summary.

szymon-gorecki’s picture

StatusFileSize
new746 bytes

The default value can be set as a parameter of the get method

sayco’s picture

Status: Active » Reviewed & tested by the community

The proposed patch #2 seems to be a better proposal (as the get methods provides the default value argument).
I've test the patch and works as expected!

darvanen’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new784 bytes

Why invoke UrlHelper on an empty string?

I propose a different, simpler approach. Patch attached.

kalpaitch’s picture

#4 Actually my apologies that looks like the best approach and does fit the logic :)

kalpaitch’s picture

kalpaitch’s picture

Status: Needs review » Reviewed & tested by the community

Looks good on review.

  • rsvelko committed 3534a34 on 8.x-2.x
    Issue #3292255 by Steven McCoy, szymon-gorecki, darvanen, kalpaitch: Can...
rsvelko’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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