Quantcast
Viewing all articles
Browse latest Browse all 296241

Deprecated function: preg_match(): Passing null to parameter

Problem/Motivation

php 8.0.21
drupal 9.3.16
Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\Core\Path\PathMatcher->matchPath() (line 85 of core/lib/Drupal/Core/Path/PathMatcher.php).
Deprecated function: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in Drupal\Component\Plugin\PluginBase->getDerivativeId() (line 83 of core/lib/Drupal/Component/Plugin/PluginBase.php).
I think this notice need to be fixed.

Steps to reproduce

upgrade php from 7.4 to 8.0

Proposed resolution

convert param to string type

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet


Viewing all articles
Browse latest Browse all 296241

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>