You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove ->getPath()in the example code. Add another example for the taskTmpDir task (since all other tasks on the same page are documented like this as well).
If you agree with the solution I could send a PR.
The text was updated successfully, but these errors were encountered:
Thanks a lot @pixelbrackets for this comment, either after so many years that comment helped me a lot to solve this error.
could not find this comment somewhere else and still is not updated in the Docs. So sad that they did not fix that.
Steps to reproduce
Install Robo 1.2.2
Execute example code from https://github.com/consolidation/Robo/blob/master/docs/tasks/Filesystem.md#tmpdir
Expected behavior
Create a temporary directory.
Actual behavior
System Configuration
PHP 7, Ubuntu 16.04, Robo 1.2.2
Reason
The documentation mixes configuration for
taskTmpDir
with building a collection. The collection builder however returns not the temp-dir object, but the path string instead. See https://github.com/consolidation/Robo/blob/master/src/Collection/CollectionBuilder.php#L134Solution
Remove
->getPath()
in the example code. Add another example for thetaskTmpDir
task (since all other tasks on the same page are documented like this as well).If you agree with the solution I could send a PR.
The text was updated successfully, but these errors were encountered: