Skip to content

Commit 33bc877

Browse files
committed
Make mapper more robust
1 parent bc8a017 commit 33bc877

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Mapper/JobMapper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class JobMapper {
1717
*/
1818
public function convertResponseToJob($response)
1919
{
20-
if (!$response) {
20+
if (!is_array($response)) {
2121
return null;
2222
}
2323

@@ -36,7 +36,7 @@ public function convertResponseToJob($response)
3636
*/
3737
public function convertResponsesToJobs($responses)
3838
{
39-
if (!$responses) {
39+
if (!is_array($responses)) {
4040
return array();
4141
}
4242

0 commit comments

Comments
 (0)