This commit is contained in:
2020-12-17 14:12:44 +08:00
parent 9516baef92
commit 33e5416dda
38 changed files with 100 additions and 101 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ namespace Snowflake\Abstracts;
use Exception;
use JetBrains\PhpStorm\Pure;
use Snowflake\Snowflake;
/**
@@ -50,7 +50,7 @@ class Component extends BaseObject
* @param null $callback
* @return bool
*/
#[Pure] public function hasEvent($name, $callback = null): bool
public function hasEvent($name, $callback = null): bool
{
if (!isset($this->_events[$name])) {
return false;