Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
use Rector\EarlyReturn\Rector\Return_\PreparedValueToEarlyReturnRector;
use Rector\Php55\Rector\String_\StringClassNameToClassConstantRector;
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
use Rector\PHPUnit\AnnotationsToAttributes\Rector\Class_\AnnotationWithValueToAttributeRector;
use Rector\PHPUnit\AnnotationsToAttributes\Rector\ClassMethod\DataProviderAnnotationToAttributeRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
Expand Down Expand Up @@ -103,11 +102,6 @@
RemoveUnusedPrivateMethodRector::class => [
__DIR__ . '/src/Commands/QueueWork.php',
],

// Skip for PayloadMetadata in the constructor
NewInInitializerRector::class => [
__DIR__ . '/src/Payloads/Payload.php',
],
]);

// auto import fully qualified class names
Expand Down
3 changes: 1 addition & 2 deletions src/Commands/QueueStop.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ class QueueStop extends BaseCommand
*
* @var array<string, string>
*/
protected $options = [
];
protected $options = [];

/**
* Actually execute a command.
Expand Down
4 changes: 1 addition & 3 deletions src/Models/QueueJobFailedModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,8 @@ public function __construct(?ConnectionInterface $db = null, ?ValidationInterfac
{
$this->DBGroup = config('Queue')->database['dbGroup'];

/**
* @var BaseConnection|null $db
*/
$db ??= Database::connect($this->DBGroup);
assert($db instanceof BaseConnection);

// Turn off the Strict Mode
$db->transStrict(false);
Expand Down
4 changes: 1 addition & 3 deletions src/Models/QueueJobModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ public function __construct(?ConnectionInterface $db = null, ?ValidationInterfac
{
$this->DBGroup = config('Queue')->database['dbGroup'];

/**
* @var BaseConnection|null $db
*/
$db ??= Database::connect($this->DBGroup);
assert($db instanceof BaseConnection);

// Turn off the Strict Mode
$db->transStrict(false);
Expand Down
Loading