Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
papac committed Feb 2, 2025
1 parent b4b4e40 commit 97048df
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Queue/Adapters/BeanstalkdAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/Queue/EventQueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

class EventQueueTest extends TestCase
{
private static $connection;
private static Connection $connection;

public static function setUpBeforeClass(): void
{
Expand Down
2 changes: 1 addition & 1 deletion tests/Queue/QueueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 97048df

Please sign in to comment.