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()
214214 /**
215215 * Bind events.
216216 */
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
218218 {
219219 // table as db.tb1,db.tb2,...
220220 if (str_contains ($ table , ', ' )) {
@@ -296,7 +296,7 @@ public function dispatch(EventDTO $event): void
296296 *
297297 * @param mixed $events
298298 */
299- public function fire ($ events , EventDTO $ event = null ): void
299+ public function fire ($ events , ? EventDTO $ event = null ): void
300300 {
301301 collect ($ events )->each (function ($ e ) use ($ event ) {
302302 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