use phpstan-require-extends instead of variable type hint in TestItemsTrait

Closes #3590399

Merge request reports

Loading