This occurred while switching wikidatawiki from .6/.7 to .8 of the Wikidata build extension.
It looks like this was the reason from the rollback to .7 for wikidatawiki
@ logstash https://logstash.wikimedia.org/goto/3843471317c78472ab662ef50f43b702
Warning: preg_match() expects parameter 2 to be string, array given in /srv/mediawiki/php-1.31.0-wmf.8/extensions/Wikidata/extensions/Constraints/includes/ConstraintCheck/Helper/SparqlHelper.php on line 462