Skip to content

Commit

Permalink
Make all advices inside AbstractJoinpoint to be instances of Intercep…
Browse files Browse the repository at this point in the history
…tor class
  • Loading branch information
lisachenko committed Jan 6, 2021
1 parent 5a69ec8 commit b130fc3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/Aop/Framework/AbstractJoinpoint.php
Expand Up @@ -34,9 +34,12 @@
abstract class AbstractJoinpoint implements Joinpoint
{
/**
* List of advices
* List of advices (interceptors)
*
* @var array<Advice|Interceptor>
* 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<Interceptor>
*/
protected array $advices = [];

Expand All @@ -58,7 +61,7 @@ abstract class AbstractJoinpoint implements Joinpoint
/**
* Initializes list of advices for current joinpoint
*
* @param array<Advice|Interceptor> $advices List of advices
* @param array<Interceptor> $advices List of advices (interceptors)
*/
public function __construct(array $advices)
{
Expand Down

0 comments on commit b130fc3

Please sign in to comment.