* zin: fix php type error in on class.
This commit is contained in:
@@ -58,10 +58,12 @@ class on extends jsCallback
|
||||
* @param string|null $selector As a delegate event selector.
|
||||
* @param array $options Event options.
|
||||
*/
|
||||
public function __construct(string $event, ?string $selector = null, array $options = array())
|
||||
public function __construct(string $event, ?string $selector = null, ?array $options = array())
|
||||
{
|
||||
parent::__construct('event', 'args');
|
||||
|
||||
if(is_null($options)) $options = array();
|
||||
|
||||
if(str_contains($event, '__'))
|
||||
{
|
||||
list($event, $flags) = explode('__', $event);
|
||||
|
||||
Reference in New Issue
Block a user