Skip to content

Commit

Permalink
[task] Fix return statement missing on some tasks (FriendsOfSymfony1#353
Browse files Browse the repository at this point in the history
)
  • Loading branch information
connorhu authored and mentalstring committed Apr 12, 2024
1 parent 7fecee2 commit 27fbf07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/task/test/sfTestFunctionalTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,7 @@ protected function execute($arguments = [], $options = [])

return $ret;
}

return 0;
}
}
2 changes: 1 addition & 1 deletion lib/task/test/sfTestPluginTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ protected function execute($arguments = [], $options = [])
$finder = sfFinder::type('file')->follow_link()->name('*Test.php');
$h->register($finder->in($h->base_dir));

return $h->run();
return $h->run() ? 0 : 1;
}
}
2 changes: 2 additions & 0 deletions lib/task/test/sfTestUnitTask.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,7 @@ protected function execute($arguments = [], $options = [])

return $ret;
}

return 0;
}
}

0 comments on commit 27fbf07

Please sign in to comment.