1 | <?php |
||
19 | abstract class BaseMiddleware extends Base |
||
20 | { |
||
21 | /** |
||
22 | * @var BaseMiddleware |
||
23 | */ |
||
24 | protected $nextMiddleware = null; |
||
25 | |||
26 | /** |
||
27 | * Execute middleware. |
||
28 | */ |
||
29 | abstract public function execute(); |
||
30 | |||
31 | /** |
||
32 | * Set next middleware. |
||
33 | * |
||
34 | * @param BaseMiddleware $nextMiddleware |
||
35 | * |
||
36 | * @return BaseMiddleware |
||
37 | */ |
||
38 | public function setNextMiddleware(self $nextMiddleware) |
||
44 | |||
45 | /** |
||
46 | * @return BaseMiddleware |
||
47 | */ |
||
48 | public function getNextMiddleware() |
||
52 | |||
53 | /** |
||
54 | * Move to next middleware. |
||
55 | */ |
||
56 | public function next() |
||
66 | } |
||
67 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..