Skip to content

Commit de934d8

Browse files
authored
Merge pull request #172 from yajra/fix-script
fix(editor): Fix typehint to match value helper
2 parents c00f984 + 962a325 commit de934d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Html/Editor/HasEvents.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ public function __call($method, $parameters)
6464
* Add Editor event listener scripts.
6565
*
6666
* @param string $event
67-
* @param string $script
67+
* @param mixed $script
6868
* @return $this
6969
* @see https://editor.datatables.net/reference/event
7070
*/
71-
public function on(string $event, string $script): static
71+
public function on(string $event, mixed $script): static
7272
{
7373
$this->events[] = [
7474
'event' => $event,

0 commit comments

Comments
 (0)