1 | <?php |
||
8 | class ScriptBranch |
||
9 | { |
||
10 | /** |
||
11 | * @var ScriptInterface |
||
12 | */ |
||
13 | private $fullScript; |
||
14 | |||
15 | /** |
||
16 | * @var array|\array[] |
||
17 | */ |
||
18 | private $segments; |
||
19 | |||
20 | /** |
||
21 | * @var array|\bool[] |
||
22 | */ |
||
23 | private $branch; |
||
24 | |||
25 | /** |
||
26 | * ScriptBranch constructor. |
||
27 | * @param ScriptInterface $fullScript |
||
28 | * @param array $branch |
||
29 | * @param PathTrace $segments |
||
30 | */ |
||
31 | public function __construct(ScriptInterface $fullScript, array $branch, PathTrace $segments) |
||
37 | |||
38 | /** |
||
39 | * @return ScriptInterface |
||
40 | */ |
||
41 | public function getFullScript() |
||
45 | |||
46 | /** |
||
47 | * @return array|\bool[] |
||
48 | */ |
||
49 | public function getBranchDescriptor() |
||
53 | |||
54 | /** |
||
55 | * @return array|\array[]|PathTrace |
||
56 | */ |
||
57 | public function getSegments() |
||
61 | |||
62 | /** |
||
63 | * @return array |
||
64 | */ |
||
65 | public function getOps() |
||
73 | |||
74 | /** |
||
75 | * @return ScriptInterface |
||
76 | */ |
||
77 | public function getNeuteredScript() |
||
81 | |||
82 | /** |
||
83 | * @return array |
||
84 | */ |
||
85 | public function __debugInfo() |
||
102 | |||
103 | /** |
||
104 | * @return OperationContainer[] |
||
105 | */ |
||
106 | public function getSignSteps() |
||
117 | } |
||
118 |
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..