Skip to content

Commit 9f6f11e

Browse files
committed
feat: add no_superflous_phpdoc_tags rule to pint config
1 parent 58c0654 commit 9f6f11e

File tree

6 files changed

+4
-6
lines changed

6 files changed

+4
-6
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)

0 commit comments

Comments
 (0)