Skip to content

Commit 8b6e877

Browse files
author
Alex Westergaard
committed
Remove strict types and use $on variable in debug()
1 parent 8036ed6 commit 8b6e877

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Model/Event.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
abstract class Event extends ToArray implements Facade\Export
99
{
10-
private bool $debug = false;
10+
private $debug = false;
1111

1212
/**
1313
* Return the name of the event
@@ -16,9 +16,9 @@ abstract class Event extends ToArray implements Facade\Export
1616
*/
1717
abstract public function getName(): string;
1818

19-
public function debug(bool $on = true)
19+
public function debug($on = true)
2020
{
21-
$this->debug = true;
21+
$this->debug = boolval($on);
2222

2323
return $this;
2424
}

0 commit comments

Comments
 (0)