File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 99 */
1010namespace PHPUnit \TextUI \Configuration ;
1111
12+ use PHPUnit \Util \FileMatcherPattern ;
1213use function array_map ;
1314use PHPUnit \Util \FileMatcher ;
1415use PHPUnit \Util \FileMatcherRegex ;
@@ -52,11 +53,11 @@ public function __construct(Source $source)
5253 $ this ->source = $ source ;
5354 $ this ->includeDirectoryRegexes = array_map (static function (FilterDirectory $ directory )
5455 {
55- return FileMatcher::toRegEx ($ directory ->path ());
56+ return FileMatcher::toRegEx (new FileMatcherPattern ( $ directory ->path () ));
5657 }, $ source ->includeDirectories ()->asArray ());
5758 $ this ->excludeDirectoryRegexes = array_map (static function (FilterDirectory $ directory )
5859 {
59- return FileMatcher::toRegEx ($ directory ->path ());
60+ return FileMatcher::toRegEx (new FileMatcherPattern ( $ directory ->path () ));
6061 }, $ source ->excludeDirectories ()->asArray ());
6162 }
6263
Original file line number Diff line number Diff line change 99 */
1010namespace PHPUnit \Util ;
1111
12- class FileMatcherPattern
12+ final class FileMatcherPattern
1313{
1414 public function __construct (public string $ path )
1515 {
You can’t perform that action at this time.
0 commit comments