Skip to content

Commit f2260a8

Browse files
committed
changes to be compatible with Robo 1.x
1 parent 9725994 commit f2260a8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GettextScanner.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use RegexIterator;
1111
use Robo\Task\BaseTask;
1212
use Robo\Contract\TaskInterface;
13+
use Robo\Result;
1314

1415
/**
1516
* Trait to scan files to get gettext entries.
@@ -21,7 +22,7 @@ trait GettextScanner
2122
*/
2223
protected function taskGettextScanner()
2324
{
24-
return new TaskGettextScanner();
25+
return $this->task(TaskGettextScanner::class);
2526
}
2627
}
2728

@@ -116,6 +117,8 @@ public function run()
116117
$this->printTaskInfo("Gettext exported to {$target}");
117118
}
118119
}
120+
121+
return Result::success($this, 'All gettext generated successfuly!');
119122
}
120123

121124
/**

0 commit comments

Comments
 (0)