We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a243e97 commit fcf835fCopy full SHA for fcf835f
src/Channel/Channel.php
@@ -146,7 +146,7 @@ public function trigger(Event $event)
146
*
147
* @return bool if there are listeners available
148
*/
149
- public function hasListeners(string $eventType = null): bool
+ public function hasListeners(?string $eventType = null): bool
150
{
151
if($eventType === null)
152
src/Events/DataEvent.php
@@ -5,7 +5,7 @@ class DataEvent extends CustomEvent
5
6
protected $_data;
7
8
- public function __construct(string $type = null, $data = null)
+ public function __construct(?string $type = null, $data = null)
9
10
parent::__construct($type);
11
$this->_data = $data;
0 commit comments