RoboFile.php
function watch(): Result {
    $this->build();
    return $this->taskWatch()
      ->monitor('lib', function() { $this->build(); })
      ->monitor('test', function() { $this->test(); })
      ->run();
  }
function watch(): Result {
    $this->build();
    return $this->taskWatch()
      ->monitor('lib', function() { $this->build(); })
      ->monitor('test', function() { $this->test(); })
      ->run();
  }
function watch ( ) : Result { $ this -> build ( ) ; return $ this -> taskWatch ( ) -> monitor ( 'lib' , function ( ) { $ this -> build ( ) ; } ) -> monitor ( 'test' , function ( ) { $ this -> test ( ) ; } ) -> run ( ) ; }
Watches for file changes.
@return Result The task result.
Watches for file changes .