The class MongoRegex has been deprecated: This extension that defines this class is deprecated. Instead, the MongoDB extension should be used. Alternatives to this class include: MongoRegex
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
35
$qb->field('domain')->equals(/** @scrutinizer ignore-deprecated */ new \MongoRegex(sprintf('/%s/', $query)));
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.