Skip to content

Commit 6423847

Browse files
committed
Fix rector rule
1 parent 4b06bef commit 6423847

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

rector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use Rector\DeadCode\Rector\ClassMethod\RemoveNullTagValueNodeRector;
88
use Rector\DeadCode\Rector\ClassMethod\RemoveUselessReturnTagRector;
99
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
10+
use Rector\TypeDeclarationDocblocks\Rector\ClassMethod\DocblockReturnArrayFromDirectArrayInstanceRector;
1011
use Rector\ValueObject\PhpVersion;
1112

1213
return RectorConfig::configure()
@@ -21,6 +22,9 @@
2122
MakeInheritedMethodVisibilitySameAsParentRector::class,
2223
RemoveNullTagValueNodeRector::class,
2324
RemoveUselessReturnTagRector::class,
25+
DocblockReturnArrayFromDirectArrayInstanceRector::class => [
26+
__DIR__ . '/src/Mailer/Transport/QueueTransport.php',
27+
],
2428
])
2529
->withParallel()
2630
->withPreparedSets(

src/Mailer/Transport/QueueTransport.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ class QueueTransport extends AbstractTransport
3636

3737
/**
3838
* @inheritDoc
39-
* @return array<string, string>
4039
*/
4140
public function send(Message $message): array
4241
{

tests/TestCase/Command/WorkerCommandTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ public function testQueueProcessesWithLogger()
142142

143143
/**
144144
* Data provider for testQueueProcessesJob method
145+
*
145146
* @return array<string, array<class-string<\TestApp\Job\LogToDebugJob>|string[]>>
146147
*/
147148
public static function dataProviderCallableTypes(): array

0 commit comments

Comments
 (0)