Skip to content

Commit 923a08f

Browse files
committed
Fix bad method call
1 parent 20bfe75 commit 923a08f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/FireFS/Watcher/FileSystemWatcher.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
use ElementaryFramework\FireFS\Events\FileSystemEntityModifiedEvent;
3737
use ElementaryFramework\FireFS\Events\FileSystemEntityDeletedEvent;
3838
use ElementaryFramework\FireFS\Events\FileSystemEntityCreatedEvent;
39-
use ElementaryFramework\FireFS\Exceptions\FileSystemEntityNotFoundException;
4039
use ElementaryFramework\FireFS\Exceptions\FileSystemWatcherException;
4140
use ElementaryFramework\FireFS\Listener\IFileSystemListener;
4241

@@ -417,7 +416,7 @@ private function _watchFile(string $_path)
417416
} else {
418417
$this->_addForWatch($_path);
419418
if ($this->_listener->onAny(new FileSystemEntityCreatedEvent($path))) {
420-
$this->_listener->onModified(new FileSystemEntityCreatedEvent($path));
419+
$this->_listener->onCreated(new FileSystemEntityCreatedEvent($path));
421420
}
422421
}
423422
} else {

0 commit comments

Comments
 (0)