Skip to content

Commit 5ac2aa9

Browse files
inmulataylorotwell
andauthored
Fix docblock for Model::getEventDispatcher() (#52602)
* Update Model.php * Update HasEvents.php * Update HasEvents.php * Update Model.php --------- Co-authored-by: Taylor Otwell <[email protected]>
1 parent 48cdbab commit 5ac2aa9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Database/Eloquent/Concerns/HasEvents.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ public function dispatchesEvents()
399399
/**
400400
* Get the event dispatcher instance.
401401
*
402-
* @return \Illuminate\Contracts\Events\Dispatcher
402+
* @return \Illuminate\Contracts\Events\Dispatcher|null
403403
*/
404404
public static function getEventDispatcher()
405405
{

src/Illuminate/Database/Eloquent/Model.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ abstract class Model implements Arrayable, ArrayAccess, CanBeEscapedWhenCastToSt
134134
/**
135135
* The event dispatcher instance.
136136
*
137-
* @var \Illuminate\Contracts\Events\Dispatcher
137+
* @var \Illuminate\Contracts\Events\Dispatcher|null
138138
*/
139139
protected static $dispatcher;
140140

0 commit comments

Comments
 (0)