Cannot unset offset 'parent' on array{id: mixed, data-tt-id: mixed, class: array{}, data: array, data-tt-parent-id: mixed}

Created on 7 May 2024, 7 months ago
Updated 21 May 2024, 6 months ago

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']);

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇾Belarus alena_stanul

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024