Skip to content

Commit a986461

Browse files
authored
add trailling commas in multline method signatures (#56992)
helps with better diffs used the following regex to find them, not perfect, but it gets you close: ``` [^,] (\ *)\)\ \{ ```
1 parent a7a5004 commit a986461

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/Illuminate/Container/Attributes/Give.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class Give implements ContextualAttribute
1919
*/
2020
public function __construct(
2121
public string $class,
22-
public array $params = []
22+
public array $params = [],
2323
) {
2424
}
2525

src/Illuminate/Container/BoundMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ protected static function addDependencyForCallParameter(
166166
$container,
167167
$parameter,
168168
array &$parameters,
169-
&$dependencies
169+
&$dependencies,
170170
) {
171171
$pendingDependencies = [];
172172

src/Illuminate/Database/Events/ModelPruningStarting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ModelPruningStarting
1010
* @param array<class-string> $models The class names of the models that will be pruned.
1111
*/
1212
public function __construct(
13-
public $models
13+
public $models,
1414
) {
1515
}
1616
}

src/Illuminate/Database/Query/Expression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Expression implements ExpressionContract
1616
* @param TValue $value
1717
*/
1818
public function __construct(
19-
protected $value
19+
protected $value,
2020
) {
2121
}
2222

src/Illuminate/Log/Events/MessageLogged.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class MessageLogged
1414
public function __construct(
1515
public $level,
1616
public $message,
17-
public array $context = []
17+
public array $context = [],
1818
) {
1919
}
2020
}

src/Illuminate/Queue/Events/WorkerStarting.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class WorkerStarting
1414
public function __construct(
1515
public $connectionName,
1616
public $queue,
17-
public $workerOptions
17+
public $workerOptions,
1818
) {
1919
}
2020
}

src/Illuminate/Queue/Events/WorkerStopping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class WorkerStopping
1212
*/
1313
public function __construct(
1414
public $status = 0,
15-
public $workerOptions = null
15+
public $workerOptions = null,
1616
) {
1717
}
1818
}

0 commit comments

Comments
 (0)