From b130fc374223a11df0a83be9a9cd79d1ee256986 Mon Sep 17 00:00:00 2001 From: Lisachenko Alexander Date: Thu, 7 Jan 2021 02:04:55 +0600 Subject: [PATCH] Make all advices inside AbstractJoinpoint to be instances of Interceptor class --- src/Aop/Framework/AbstractJoinpoint.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Aop/Framework/AbstractJoinpoint.php b/src/Aop/Framework/AbstractJoinpoint.php index 99ddf075..395b0f91 100644 --- a/src/Aop/Framework/AbstractJoinpoint.php +++ b/src/Aop/Framework/AbstractJoinpoint.php @@ -34,9 +34,12 @@ abstract class AbstractJoinpoint implements Joinpoint { /** - * List of advices + * List of advices (interceptors) * - * @var array + * NB: All current children assume that each advice is Interceptor now. + * Whereas, it isn't correct logically, this can be used to satisfy PHPStan check now. + * + * @var array */ protected array $advices = []; @@ -58,7 +61,7 @@ abstract class AbstractJoinpoint implements Joinpoint /** * Initializes list of advices for current joinpoint * - * @param array $advices List of advices + * @param array $advices List of advices (interceptors) */ public function __construct(array $advices) {