Project

General

Profile

Actions

Bug #98387

closed

PHP Warning: Undefined array key "XYZ" in File line 184

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-21
Due date:
% Done:

100%

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

Description

Update none existing properties of a file.
There is a missing check if key exists.

        foreach ($properties as $key => $value) {
            if ($this->properties[$key] !== $value) {
                if (!in_array($key, $this->updatedProperties)) {
                    $this->updatedProperties[] = $key;
                }
                $this->properties[$key] = $value;
            }
        }


Related issues 2 (0 open2 closed)

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

Actions
Has duplicate TYPO3 Core - Bug #97636: Warning when trying to update not existing file properties with File::updatePropertiesClosed2022-05-16

Actions
Actions

Also available in: Atom PDF