Skip to content

Commit d8a53a0

Browse files
authored
[8.x] Deprecate dispatch_now & dispatchNow (#36834)
* Deprecate dispatch_now * Deprecate dispatchNow on trait
1 parent 97fe4a1 commit d8a53a0

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Illuminate/Foundation/Bus/Dispatchable.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ public static function dispatchSync()
6161
* Dispatch a command to its appropriate handler in the current process.
6262
*
6363
* @return mixed
64+
*
65+
* @deprecated Will be removed in a future Laravel version.
6466
*/
6567
public static function dispatchNow()
6668
{

src/Illuminate/Foundation/helpers.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ function dispatch_sync($job, $handler = null)
413413
* @param mixed $job
414414
* @param mixed $handler
415415
* @return mixed
416+
*
417+
* @deprecated Will be removed in a future Laravel version.
416418
*/
417419
function dispatch_now($job, $handler = null)
418420
{

0 commit comments

Comments
 (0)