@@ -52,42 +52,42 @@ public function fake()
5252 return $ this ;
5353 }
5454
55- public function broadcastAppend ($ content = null , Model |string $ target = null , string $ targets = null , Channel |Model |Collection |array |string $ channel = null , array $ attributes = [])
55+ public function broadcastAppend ($ content = null , Model |string | null $ target = null , ? string $ targets = null , Channel |Model |Collection |array |string | null $ channel = null , array $ attributes = [])
5656 {
5757 return $ this ->broadcastAction ('append ' , $ content , $ target , $ targets , $ channel , $ attributes );
5858 }
5959
60- public function broadcastPrepend ($ content = null , Model |string $ target = null , string $ targets = null , Channel |Model |Collection |array |string $ channel = null , array $ attributes = [])
60+ public function broadcastPrepend ($ content = null , Model |string | null $ target = null , ? string $ targets = null , Channel |Model |Collection |array |string | null $ channel = null , array $ attributes = [])
6161 {
6262 return $ this ->broadcastAction ('prepend ' , $ content , $ target , $ targets , $ channel , $ attributes );
6363 }
6464
65- public function broadcastBefore ($ content = null , Model |string $ target = null , string $ targets = null , Channel |Model |Collection |array |string $ channel = null , array $ attributes = [])
65+ public function broadcastBefore ($ content = null , Model |string | null $ target = null , ? string $ targets = null , Channel |Model |Collection |array |string | null $ channel = null , array $ attributes = [])
6666 {
6767 return $ this ->broadcastAction ('before ' , $ content , $ target , $ targets , $ channel , $ attributes );
6868 }
6969
70- public function broadcastAfter ($ content = null , Model |string $ target = null , string $ targets = null , Channel |Model |Collection |array |string $ channel = null , array $ attributes = [])
70+ public function broadcastAfter ($ content = null , Model |string | null $ target = null , ? string $ targets = null , Channel |Model |Collection |array |string | null $ channel = null , array $ attributes = [])
7171 {
7272 return $ this ->broadcastAction ('after ' , $ content , $ target , $ targets , $ channel , $ attributes );
7373 }
7474
75- public function broadcastUpdate ($ content = null , Model |string $ target = null , string $ targets = null , Channel |Model |Collection |array |string $ channel = null , array $ attributes = [])
75+ public function broadcastUpdate ($ content = null , Model |string | null $ target = null , ? string $ targets = null , Channel |Model |Collection |array |string | null $ channel = null , array $ attributes = [])
7676 {
7777 return $ this ->broadcastAction ('update ' , $ content , $ target , $ targets , $ channel , $ attributes );
7878 }
7979
80- public function broadcastReplace ($ content = null , Model |string $ target = null , string $ targets = null , Channel |Model |Collection |array |string $ channel = null , array $ attributes = [])
80+ public function broadcastReplace ($ content = null , Model |string | null $ target = null , ? string $ targets = null , Channel |Model |Collection |array |string | null $ channel = null , array $ attributes = [])
8181 {
8282 return $ this ->broadcastAction ('replace ' , $ content , $ target , $ targets , $ channel , $ attributes );
8383 }
8484
85- public function broadcastRemove (Model |string $ target = null , string $ targets = null , Channel |Model |Collection |array |string $ channel = null , array $ attributes = [])
85+ public function broadcastRemove (Model |string | null $ target = null , ? string $ targets = null , Channel |Model |Collection |array |string | null $ channel = null , array $ attributes = [])
8686 {
8787 return $ this ->broadcastAction ('remove ' , null , $ target , $ targets , $ channel , $ attributes );
8888 }
8989
90- public function broadcastRefresh (Channel |Model |Collection |array |string $ channel = null )
90+ public function broadcastRefresh (Channel |Model |Collection |array |string | null $ channel = null )
9191 {
9292 return $ this ->broadcastAction (
9393 action: 'refresh ' ,
@@ -98,7 +98,7 @@ public function broadcastRefresh(Channel|Model|Collection|array|string $channel
9898 ));
9999 }
100100
101- public function broadcastAction (string $ action , $ content = null , Model |string $ target = null , string $ targets = null , Channel |Model |Collection |array |string $ channel = null , array $ attributes = [])
101+ public function broadcastAction (string $ action , $ content = null , Model |string | null $ target = null , ? string $ targets = null , Channel |Model |Collection |array |string | null $ channel = null , array $ attributes = [])
102102 {
103103 $ broadcast = new PendingBroadcast (
104104 channels: $ channel ? $ this ->resolveChannels ($ channel ) : [],
0 commit comments