mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
add PHP8 Attribute compatibility (build 439, 2.7.0-beta4)
This commit is contained in:
@@ -30,7 +30,10 @@ class EventTracer
|
||||
public static function getCurrentEventMiddlewares()
|
||||
{
|
||||
$current_event = self::getCurrentEvent();
|
||||
if (!isset($current_event->class, $current_event->method)) {
|
||||
if (empty($current_event->class)) {
|
||||
return null;
|
||||
}
|
||||
if (empty($current_event->method)) {
|
||||
return null;
|
||||
}
|
||||
return EventManager::$middleware_map[$current_event->class][$current_event->method] ?? [];
|
||||
|
||||
Reference in New Issue
Block a user