Skip to content

Commit 5a89978

Browse files
committed
feat: add no_superflous_phpdoc_tags rule to pint config
1 parent ba3bb17 commit 5a89978

File tree

8 files changed

+7
-9
lines changed

8 files changed

+7
-9
lines changed

pint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
]
9999
},
100100
"no_spaces_after_function_name": true,
101+
"no_superfluous_phpdoc_tags": true,
101102
"no_trailing_comma_in_singleline": true,
102103
"no_trailing_whitespace": true,
103104
"no_trailing_whitespace_in_comment": true,

src/Illuminate/Console/Scheduling/Schedule.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ public function exec($command, array $parameters = [])
301301
/**
302302
* Create new schedule group.
303303
*
304-
* @param \Illuminate\Console\Scheduling\Event $event
305304
* @return void
306305
*
307306
* @throws \RuntimeException

src/Illuminate/Foundation/helpers.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,9 @@ function encrypt($value, $serialize = true): string
499499
* @param mixed $payload
500500
* @param bool $halt
501501
*/
502-
function event(...$args)
502+
function event($event, $payload = [], $halt = false)
503503
{
504-
return app('events')->dispatch(...$args);
504+
return app('events')->dispatch($event, $payload, $halt);
505505
}
506506
}
507507

src/Illuminate/Queue/Events/WorkerStarting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class WorkerStarting
99
*
1010
* @param string $connectionName
1111
* @param string $queue
12-
* @param \Illuminate\Queue\WorkerOptions $options
12+
* @param \Illuminate\Queue\WorkerOptions $workerOptions
1313
*/
1414
public function __construct(
1515
public $connectionName,

src/Illuminate/Support/Testing/Fakes/BusFake.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ public function assertDispatched($command, $callback = null)
137137
* Assert if a job was pushed exactly once.
138138
*
139139
* @param string|\Closure $command
140-
* @param int $times
141140
* @return void
142141
*/
143142
public function assertDispatchedOnce($command)

src/Illuminate/Support/Testing/Fakes/EventFake.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ public function assertDispatched($event, $callback = null)
151151
* Assert if an event was dispatched exactly once.
152152
*
153153
* @param string $event
154-
* @param int $times
155154
* @return void
156155
*/
157156
public function assertDispatchedOnce($event)

tests/Database/PruneCommandTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public function testTheCommandDispatchesEvents()
242242
$event->models === [Pruning\Models\PrunableTestModelWithPrunableRecords::class];
243243
});
244244
$dispatcher->shouldReceive('listen')->once()->with(ModelsPruned::class, m::type(Closure::class));
245-
$dispatcher->shouldReceive('dispatch')->twice()->with(m::type(ModelsPruned::class));
245+
$dispatcher->shouldReceive('dispatch')->twice()->with(m::type(ModelsPruned::class), [], false);
246246
$dispatcher->shouldReceive('dispatch')->once()->withArgs(function ($event) {
247247
return get_class($event) === ModelPruningFinished::class &&
248248
$event->models === [Pruning\Models\PrunableTestModelWithPrunableRecords::class];

tests/Integration/Database/EloquentMassPrunableTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function testPrunesRecords()
5757
app('events')
5858
->shouldReceive('dispatch')
5959
->times(2)
60-
->with(m::type(ModelsPruned::class));
60+
->with(m::type(ModelsPruned::class), [], false);
6161

6262
collect(range(1, 5000))->map(function ($id) {
6363
return ['name' => 'foo'];
@@ -76,7 +76,7 @@ public function testPrunesSoftDeletedRecords()
7676
app('events')
7777
->shouldReceive('dispatch')
7878
->times(3)
79-
->with(m::type(ModelsPruned::class));
79+
->with(m::type(ModelsPruned::class), [], false);
8080

8181
collect(range(1, 5000))->map(function ($id) {
8282
return ['deleted_at' => now()];

0 commit comments

Comments
 (0)