Problem/Motivation

According to phanstan report I found the following issue:

Line   token/src/Element/TokenTreeTable.php
 ------ -----------------------------------------------------------------------------------------------------------------------------
  146    Cannot unset offset 'parent' on array{id: mixed, data-tt-id: mixed, class: array{}, data: array, data-tt-parent-id: mixed}.

Steps to reproduce

Proposed resolution

It is necessary to correct or remove the mistakenly added code.
unset($row['parent']);

Issue fork token-3445704

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alena_stanul created an issue. See original summary.

Berdir made their first commit to this issue’s fork.

  • alena_stanul committed ce0ed143 on 8.x-1.x
    Issue #3445704: Cannot unset offset 'parent' on array{id: mixed, data-tt...
berdir’s picture

Status: Active » Fixed

No idea what that line does, this was ported from D7 code that was quite different. seems fine to just drop this, yes.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.