From 71c77c3613b1daf35a751f2315fee6379b8afc79 Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Tue, 13 Jun 2017 01:09:51 +0200 Subject: [PATCH] allow checking string jobs (#19575) --- src/Illuminate/Support/Testing/Fakes/QueueFake.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Support/Testing/Fakes/QueueFake.php b/src/Illuminate/Support/Testing/Fakes/QueueFake.php index deac7210d59a..4da24c8e57ff 100644 --- a/src/Illuminate/Support/Testing/Fakes/QueueFake.php +++ b/src/Illuminate/Support/Testing/Fakes/QueueFake.php @@ -129,7 +129,7 @@ public function size($queue = null) */ public function push($job, $data = '', $queue = null) { - $this->jobs[get_class($job)][] = [ + $this->jobs[is_object($job) ? get_class($job) : $job][] = [ 'job' => $job, 'queue' => $queue, ];