| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function instantiateBlock($plugin_id, $theme) { |
||
| 41 | $this->visitPath('/admin/structure/block/add/' . $plugin_id . '/' . $theme); |
||
| 42 | |||
| 43 | $id = uniqid($theme . '_'); |
||
| 44 | $this->minkContext->fillField('id', $id); |
||
| 45 | |||
| 46 | /** @var UndoContext $undo */ |
||
| 47 | $undo = $this->getContext(UndoContext::class); |
||
| 48 | if ($undo) { |
||
| 49 | $undo->push([$this, 'deleteBlock'], [$id]); |
||
| 50 | } |
||
| 51 | } |
||
| 52 | |||
| 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..