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 3780dc5 commit a57702eCopy full SHA for a57702e
src/Glob.php
@@ -43,7 +43,7 @@ public static function pattern(string $pattern): self
43
/** Set the directory separator string. */
44
public static function directorySeparator(string $separator): void
45
{
46
- self::$directorySeparator = $separator;
+ static::$directorySeparator = $separator;
47
}
48
49
/** Escape glob pattern characters from a string. */
@@ -133,7 +133,7 @@ public function toRegex(int $options = self::BOTH_ANCHORS): string
133
$pattern .= '.*';
134
++$i;
135
} else {
136
- $pattern .= sprintf('[^%s]*', addslashes(self::$directorySeparator));
+ $pattern .= sprintf('[^%s]*', addslashes(static::$directorySeparator));
137
138
break;
139
0 commit comments