Skip to content
This repository was archived by the owner on May 30, 2025. It is now read-only.

Commit 01b6150

Browse files
committed
normalize slashes in notify
1 parent 822f924 commit 01b6150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Share.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public function notify($path, callable $callback) {
360360
$connection->write($command . PHP_EOL);
361361
$connection->read(function ($line) use ($callback, $path) {
362362
$code = (int)substr($line, 0, 4);
363-
$subPath = substr($line, 5);
363+
$subPath = str_replace('\\', '/', substr($line, 5));
364364
if ($path === '') {
365365
return $callback($code, $subPath);
366366
} else {

0 commit comments

Comments
 (0)