diff --git a/src/IterableCodeExtractor.php b/src/IterableCodeExtractor.php
index <HASH>..<HASH> 100644
--- a/src/IterableCodeExtractor.php
+++ b/src/IterableCodeExtractor.php
@@ -196,7 +196,7 @@ trait IterableCodeExtractor {
 
 		$files = new RecursiveIteratorIterator(
 			new RecursiveCallbackFilterIterator(
-				new RecursiveDirectoryIterator( $dir, RecursiveDirectoryIterator::SKIP_DOTS ),
+				new RecursiveDirectoryIterator( $dir, RecursiveDirectoryIterator::SKIP_DOTS | RecursiveDirectoryIterator::UNIX_PATHS ),
 				function ( $file, $key, $iterator ) use ( $include, $exclude, $extensions ) {
 					/** @var RecursiveCallbackFilterIterator $iterator */
 					/** @var SplFileInfo $file */
Pass UNIX_PATHS flag to RecursiveDirectoryIterator constructor

This is needed so that the files in the RecursiveCallbackFilterIterator
callback have Unix-style paths for matching against $include and
$exclude.