Bug report
PHPUnit's sebastianbergmann/phpunit#6341 introduced a subtle change in the meaning of the #[IgnoreDeprecations] attribute in PHPUnit 12.4.0.
If before having #[IgnoreDeprecations] on a class/method could mean the entire code block was to be considered deprecated scope, now if a regex is specified, we cannot assume that any longer.
We need to adjust IgnoreDeprecationsScope so that if arguments are passed to #[IgnoreDeprecations], we do not consider the scope as deprecated.