1 | <?php |
||
10 | class StatementAfterCompile extends \Webiny\Component\EventManager\Event |
||
11 | { |
||
12 | const EVENT_NAME = 'statement.after-compile'; |
||
13 | |||
14 | /** |
||
15 | * @var Context |
||
16 | */ |
||
17 | protected $context; |
||
18 | |||
19 | /** |
||
20 | * @var \PhpParser\Node\Expr |
||
21 | */ |
||
22 | protected $statement; |
||
23 | |||
24 | /** |
||
25 | * @var mixed |
||
26 | */ |
||
27 | protected $result; |
||
28 | |||
29 | public function __construct(\PhpParser\Node\Stmt $statement, Context $context, $result) |
||
37 | |||
38 | /** |
||
39 | * @return Context |
||
40 | */ |
||
41 | public function getContext() |
||
45 | |||
46 | /** |
||
47 | * @return \PhpParser\Node\Expr |
||
48 | */ |
||
49 | public function getStatement() |
||
53 | |||
54 | /** |
||
55 | * @return mixed |
||
56 | */ |
||
57 | public function getResult() |
||
61 | } |
||
62 |
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..