diff --git a/src/Components/rpc/src/Route/Event/RpcAnnotationParserEvent.php b/src/Components/rpc/src/Route/Event/RpcAnnotationParserEvent.php index d781deb1a..4bdf79450 100644 --- a/src/Components/rpc/src/Route/Event/RpcAnnotationParserEvent.php +++ b/src/Components/rpc/src/Route/Event/RpcAnnotationParserEvent.php @@ -9,7 +9,8 @@ class RpcAnnotationParserEvent extends CommonEvent { public function __construct( - string $__eventName, ?object $__target = null, + string $__eventName, + ?object $__target, public readonly \Imi\Bean\Annotation\Base $annotation, public readonly string $className, public readonly string $target, diff --git a/src/Log/ErrorLog.php b/src/Log/ErrorLog.php index d88c83051..843ebbdc2 100644 --- a/src/Log/ErrorLog.php +++ b/src/Log/ErrorLog.php @@ -51,6 +51,10 @@ public function register(): void */ public function onError(int $errno, string $errstr, string $errfile, int $errline): void { + if (0 === (error_reporting() & $errno)) + { + return; + } foreach ($this->errorEventHandlers as $class) { $handler = new $class();