services:
    Rector\CodingStyle\Rector\ClassMethod\ReturnArrayClassMethodToYieldRector:
        PHPUnit\Framework\TestCase:
            - '#(provide|dataProvider)*#'

services:
    Rector\CodingStyle\Rector\ClassMethod\ReturnArrayClassMethodToYieldRector:
        PHPUnit\Framework\TestCase:
            - 'provide*'
            - 'dataProvider*'

Update rule with proper syntax of ReturnArrayClassMethodToYieldRector
Update rule with proper syntax of ReturnArrayClassMethodToYieldRector