This commit is contained in:
2021-02-23 14:45:50 +08:00
parent e789002c9e
commit 27f6c88cbf
6 changed files with 24 additions and 35 deletions
+4
View File
@@ -16,6 +16,7 @@ use Snowflake\Snowflake;
#[\Attribute(\Attribute::TARGET_METHOD)] class After implements IAnnotation
{
use Node;
/**
* Interceptor constructor.
@@ -24,6 +25,9 @@ use Snowflake\Snowflake;
*/
public function __construct(public string|array $after)
{
if (is_string($this->after)) {
$this->after = [];
}
}