File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -214,7 +214,7 @@ public function clearCurrent()
214
214
/**
215
215
* Bind events.
216
216
*/
217
- public function on (string $ table , array |string $ eventType , array |callable |Closure |string $ action = null ): void
217
+ public function on (string $ table , array |string $ eventType , array |callable |Closure |string | null $ action = null ): void
218
218
{
219
219
// table as db.tb1,db.tb2,...
220
220
if (str_contains ($ table , ', ' )) {
@@ -296,7 +296,7 @@ public function dispatch(EventDTO $event): void
296
296
*
297
297
* @param mixed $events
298
298
*/
299
- public function fire ($ events , EventDTO $ event = null ): void
299
+ public function fire ($ events , ? EventDTO $ event = null ): void
300
300
{
301
301
collect ($ events )->each (function ($ e ) use ($ event ) {
302
302
collect (Arr::get ($ this ->events , $ e ))->each (fn ($ action ) => $ this ->call (...$ this ->parseAction ($ action , $ event )));
You can’t perform that action at this time.
0 commit comments