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 e5fe073 commit 9a46e47Copy full SHA for 9a46e47
Gitignore.php
@@ -54,7 +54,7 @@ public static function toRegex(string $gitignoreFileContent): string
54
}
55
56
$negativesAfter = array_filter(\array_slice($negatives, ++$index));
57
- if ($negativesAfter !== []) {
+ if ([] !== $negativesAfter) {
58
$pattern .= sprintf('(?<!%s)', implode('|', $negativesAfter));
59
60
0 commit comments