Skip to content

Commit cdb0106

Browse files
authored
Correct type of $batchId in Batchable trait (#58069)
The `$batchId` type is incorrect. If no Batch is used the `$batchId` can be `null`.
1 parent 42d4410 commit cdb0106

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Bus/Batchable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ trait Batchable
1212
/**
1313
* The batch ID (if applicable).
1414
*
15-
* @var string
15+
* @var string|null
1616
*/
1717
public $batchId;
1818

0 commit comments

Comments
 (0)