Skip to content

Disallow passing NULL to preg_match()

Philip Curley requested to merge issue/ableplayer-3408613:3.x into 3.x

Updates Drupal\ableplayer\Plugin\Field\FieldFormatter\AbleplayerRemoteVideoFormatter->getVideoId(). If the second parameter, $url, is a NULL type then do not continue in the function and return early: $id = '';. This is behavior for PHP <= 8.1 and will prevent errors in future versions of PHP.

Merge request reports

Loading