We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df09153 commit f4d316dCopy full SHA for f4d316d
src/Cli/Executable/Pgdump.php
@@ -273,8 +273,11 @@ public function usePort(int $port) : Pgdump
273
* @param int $jobs
274
* @return \phpbu\App\Cli\Executable\Pgdump
275
*/
276
- public function dumpJobs(int $jobs) : Pgdump
+ public function dumpJobs(int $jobs): Pgdump
277
{
278
+ if ($jobs < 0) {
279
+ throw new Exception('invalid jobs value');
280
+ }
281
$this->jobs = $jobs;
282
return $this;
283
}
0 commit comments