1 | <?php |
||
14 | final class IsolateContext implements PersistenceContext |
||
15 | { |
||
16 | /** |
||
17 | * @var Name |
||
18 | */ |
||
19 | private $name; |
||
20 | |||
21 | /** |
||
22 | * @var TransactionFactory |
||
23 | */ |
||
24 | private $transactionFactory; |
||
25 | |||
26 | /** |
||
27 | * @var Transaction|null |
||
28 | */ |
||
29 | private $transaction; |
||
30 | |||
31 | /** |
||
32 | * @param Name $name |
||
33 | * @param TransactionFactory $transactionFactory |
||
34 | */ |
||
35 | public function __construct(Name $name, TransactionFactory $transactionFactory) |
||
40 | |||
41 | /** |
||
42 | * @return Name |
||
43 | */ |
||
44 | public function getName() |
||
48 | |||
49 | /** |
||
50 | * @return Transaction |
||
51 | * @throws NotClosedTransactionException |
||
52 | */ |
||
53 | public function openTransaction() |
||
63 | |||
64 | /** |
||
65 | * @return boolean |
||
66 | */ |
||
67 | public function hasOpenTransaction() |
||
71 | |||
72 | /** |
||
73 | * @return Transaction |
||
74 | * @throws NotOpenedTransactionException |
||
75 | */ |
||
76 | public function getTransaction() |
||
84 | |||
85 | /** |
||
86 | * @throws NotOpenedTransactionException |
||
87 | */ |
||
88 | public function closeTransaction() |
||
98 | } |
||
99 |
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..