We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef3a232 commit d97deb8Copy full SHA for d97deb8
src/FileSystem/InitFilePathsResolver.php
@@ -12,6 +12,12 @@
12
*/
13
final class InitFilePathsResolver
14
{
15
+ /**
16
+ * @var string
17
+ * @see https://regex101.com/r/XkQ6Pe/1
18
+ */
19
+ private const DO_NOT_INCLUDE_PATHS_REGEX = '#(vendor|var|stubs|temp|templates|tmp|e2e|bin|build|Migrations|data(?:base)?|storage|migrations|writable)#';
20
+
21
/**
22
* @return string[]
23
@@ -21,7 +27,7 @@ public function resolve(string $projectDirectory): array
27
->directories()
28
->depth(0)
29
// system files
24
- ->notPath('#(vendor|var|stubs|temp|templates|tmp|e2e|bin|build|Migrations|database|storage|migrations)#')
30
+ ->notPath(self::DO_NOT_INCLUDE_PATHS_REGEX)
25
31
->in($projectDirectory)
26
32
->sortByName();
33
0 commit comments