@@ -17,39 +17,39 @@ class DatastarVariable
1717 /**
1818 * Returns a Datastar `@get` action.
1919 */
20- public function get (string $ route , array $ variables = [], array $ options = []): string
20+ public function get (string $ route , array $ variables = [], array | string $ options = []): string
2121 {
2222 return Action::getAction ('get ' , $ route , $ variables , $ options );
2323 }
2424
2525 /**
2626 * Returns a Datastar `@post` action.
2727 */
28- public function post (string $ route , array $ variables = [], array $ options = []): string
28+ public function post (string $ route , array $ variables = [], array | string $ options = []): string
2929 {
3030 return Action::getAction ('post ' , $ route , $ variables , $ options );
3131 }
3232
3333 /**
3434 * Returns a Datastar `@put` action.
3535 */
36- public function put (string $ route , array $ variables = [], array $ options = []): string
36+ public function put (string $ route , array $ variables = [], array | string $ options = []): string
3737 {
3838 return Action::getAction ('put ' , $ route , $ variables , $ options );
3939 }
4040
4141 /**
4242 * Returns a Datastar `@patch` action.
4343 */
44- public function patch (string $ route , array $ variables = [], array $ options = []): string
44+ public function patch (string $ route , array $ variables = [], array | string $ options = []): string
4545 {
4646 return Action::getAction ('patch ' , $ route , $ variables , $ options );
4747 }
4848
4949 /**
5050 * Returns a Datastar `@delete` action.
5151 */
52- public function delete (string $ route , array $ variables = [], array $ options = []): string
52+ public function delete (string $ route , array $ variables = [], array | string $ options = []): string
5353 {
5454 return Action::getAction ('delete ' , $ route , $ variables , $ options );
5555 }
0 commit comments