After updating php to 8.1 the following error has appeared:
Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\openy_activity_finder\Plugin\search_api\processor\Week->addFieldValues() (line 55 of /var/www/docroot/modules/contrib/openy_activity_finder/src/Plugin/search_api/processor/Week.php)
After updating php to 8.1 the following error has appeared:
Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\openy_activity_finder\Plugin\search_api\processor\Week->addFieldValues() (line 55 of /var/www/docroot/modules/contrib/openy_activity_finder/src/Plugin/search_api/processor/Week.php)
This PR aims to fix it