Skip to content

Commit 0435f87

Browse files
committed
Fix missing return statement
1 parent 4306bfe commit 0435f87

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/Controllers/TubesController.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,8 @@
99

1010
class TubesController extends Controller
1111
{
12-
/**
13-
* @var Pheanstalk
14-
*/
15-
private $pheanstalk;
16-
/**
17-
* @var JobRepository
18-
*/
19-
private $jobs;
12+
private PheanstalkInterface $pheanstalk;
13+
private JobRepository $jobs;
2014

2115
public function __construct(PheanstalkInterface $pheanstalk, JobRepository $jobs)
2216
{

src/Repositories/JobRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private function next(string $type, string $tube, bool $withStats = false): ?Job
5656

5757
return new Job($instance);
5858
} catch (ServerException $e) {
59-
//
59+
return null;
6060
}
6161
}
6262
}

0 commit comments

Comments
 (0)