Project

General

Profile

Actions

Bug #98406

closed

PHP Warning: Undefined array key X in AbstractItemProvider

Added by Daniel Siepmann about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2022-09-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

There are three some cases where keys are accessed without checking if they exist.

                            $rowFieldValue = $rowFieldValue[0]['uid'] ?? $rowFieldValue[0];
                $label = $languageService->sL(trim($item[0]));
            $value = strlen((string)$item[1]) > 0 ? $item[1] : '';

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #98321: Address "undefined array key" issues for PHP 8Closed2022-09-10

Actions
Actions #1

Updated by Daniel Siepmann about 2 years ago

  • Related to Task #98321: Address "undefined array key" issues for PHP 8 added
Actions #2

Updated by Gerrit Code Review about 2 years ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75842

Actions #3

Updated by Gerrit Code Review about 2 years ago

Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/75820

Actions #4

Updated by Daniel Siepmann about 2 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by Benni Mack about 2 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF