Skip to content

Commit 7788e8e

Browse files
authored
Merge pull request #3 from phprtc/dev
Updated documentation
2 parents ceae89a + 18a2ada commit 7788e8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Watcher::create()
2121
->addPath(__DIR__ . '/app')
2222
->addPath(__DIR__ . '/views')
2323
->onChange(function (EventInfo $eventInfo) {
24-
var_dump($eventInfo->getMask());
24+
var_dump($eventInfo->getWatchedItem()->getFullPath());
2525
});
2626
```
2727

@@ -36,7 +36,7 @@ Watcher::create()
3636
->addPath(__DIR__ . '/app')
3737
->fileShouldNotEndWith(['.php'])
3838
->onChange(function (EventInfo $eventInfo) {
39-
var_dump($eventInfo->getMask());
39+
var_dump($eventInfo->getWatchedItem()->getFullPath());
4040
});
4141
```
4242

@@ -50,7 +50,7 @@ Watcher::create()
5050
->addPath(__DIR__ . '/app')
5151
->addExtension('php')
5252
->onChange(function (EventInfo $eventInfo) {
53-
var_dump($eventInfo->getMask());
53+
var_dump($eventInfo->getWatchedItem()->getFullPath());
5454
});
5555
```
5656

@@ -68,7 +68,7 @@ require 'vendor/autoload.php';
6868
Watcher::create()
6969
->addPath(__DIR__ . '/app')
7070
->onAny(function (EventInfo $eventInfo) {
71-
var_dump($eventInfo->getMask());
71+
var_dump($eventInfo->getWatchedItem()->getFullPath());
7272
});
7373
```
7474

0 commit comments

Comments
 (0)