PHP 8.1 Deprecated function
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3300192. -->
Reported by: [bserem](https://www.drupal.org/user/388753)
Related to !9 !10 !8
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Most sites will need to update to PHP 8.1 soon-ish. This modules produces a deprecation error when running php 8.1</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Update to PHP 8.1 and visit status report or updates report page.</p>
<pre>Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\Component\Utility\UrlHelper::stripDangerousProtocols() (line 358 of core/lib/Drupal/Component/Utility/UrlHelper.php).<br><br>Drupal\Component\Utility\UrlHelper::stripDangerousProtocols(NULL) (Line: 213)<br>Drupal\Component\Render\FormattableMarkup::placeholderFormat('Check this out from @sitename: :base_url:current_path', Array) (Line: 195)<br>Drupal\Core\StringTranslation\TranslatableMarkup->render() (Line: 15)<br>Drupal\Core\StringTranslation\TranslatableMarkup->__toString()<br>rawurlencode(Object) (Line: 58)<br>Drupal\Component\Utility\UrlHelper::buildQuery(Array) (Line: 534)<br>Drupal\Core\Url->toUriString() (Line: 51)<br>Drupal\mgv\Plugin\GlobalVariable\SocialSharingEmail->getValue() (Line: 78)<br>Drupal\mgv\MgvPluginManager->getNamespacedValue('social_sharing\email', Object) (Line: 64)<br>Drupal\mgv\MgvPluginManager->getVariables() (Line: 116)</pre>
issue