diff --git a/src/Queue/Adapters/BeanstalkdAdapter.php b/src/Queue/Adapters/BeanstalkdAdapter.php index 6fd117ec..d20b7ce6 100644 --- a/src/Queue/Adapters/BeanstalkdAdapter.php +++ b/src/Queue/Adapters/BeanstalkdAdapter.php @@ -130,7 +130,7 @@ public function run(string $queue = null): void } catch (Throwable $e) { // Write the error log error_log($e->getMessage()); - app('logger')->error($e->getMessage(), $e->getTrace()); + logger()->error($e->getMessage(), $e->getTrace()); cache("job:failed:" . $job->getId(), $job->getData()); // Check if producer has been loaded diff --git a/tests/Queue/EventQueueTest.php b/tests/Queue/EventQueueTest.php index 481b85b1..8b574cf7 100644 --- a/tests/Queue/EventQueueTest.php +++ b/tests/Queue/EventQueueTest.php @@ -18,7 +18,7 @@ class EventQueueTest extends TestCase { - private static $connection; + private static Connection $connection; public static function setUpBeforeClass(): void { diff --git a/tests/Queue/QueueTest.php b/tests/Queue/QueueTest.php index dbbec331..90d3ee81 100644 --- a/tests/Queue/QueueTest.php +++ b/tests/Queue/QueueTest.php @@ -81,7 +81,7 @@ public function test_instance_of_adapter($connection) * @param string $connection * @return void */ - public function test_push_service_adapter($connection) + public function test_push_service_adapter(string $connection) { $adapter = static::$connection->setConnection($connection)->getAdapter(); $filename = TESTING_RESOURCE_BASE_DIRECTORY . "/{$connection}_producer.txt";