Skip to content

Commit fcf835f

Browse files
authored
Deprecations (#1)
* Fix deprecations * Fix deprecations
1 parent a243e97 commit fcf835f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Channel/Channel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public function trigger(Event $event)
146146
*
147147
* @return bool if there are listeners available
148148
*/
149-
public function hasListeners(string $eventType = null): bool
149+
public function hasListeners(?string $eventType = null): bool
150150
{
151151
if($eventType === null)
152152
{

src/Events/DataEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class DataEvent extends CustomEvent
55
{
66
protected $_data;
77

8-
public function __construct(string $type = null, $data = null)
8+
public function __construct(?string $type = null, $data = null)
99
{
1010
parent::__construct($type);
1111
$this->_data = $data;

0 commit comments

Comments
 (0)