The regex should be `'/\.(php|inc)$/'`, and please bump the symfony/finder requirement in composer.json to `~2.2` if you use useBestAdapter().