| 1 | <?php |
||
| 10 | class Yaysondb implements TransactableInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var Collection[] Loaded collections |
||
| 14 | */ |
||
| 15 | private $collections; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Load collections |
||
| 19 | * |
||
| 20 | * @param CollectionInterface[] $collections Map of identifiers to collections |
||
| 21 | */ |
||
| 22 | public function __construct(array $collections) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Get collection |
||
| 29 | * |
||
| 30 | * @throws Exception\LogicException If id is not defined |
||
| 31 | */ |
||
| 32 | public function collection(string $id): CollectionInterface |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Magic method to allow collection access through property name |
||
| 43 | */ |
||
| 44 | public function __get(string $id): CollectionInterface |
||
| 48 | |||
| 49 | public function commit() |
||
| 57 | |||
| 58 | public function inTransaction(): bool |
||
| 68 | |||
| 69 | public function reset() |
||
| 77 | } |
||
| 78 |
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..