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, about 2 months ago
Updated 21 May 2024, about 1 month 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.69.0 2024