Project

General

Profile

Actions

Bug #97699

closed

Argument must be array when accessing a custom finisher variable

Added by Josua Vogel over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-05-27
Due date:
% Done:

100%

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

Description

If you try to access a finisher variable, of a finisher which wasn't executed before, by using

$this->finisherContext->getFinisherVariableProvider()->get('NotExecutedFinisher', 'key', 'default')

the following error is thrown:
Argument #1 ($array) must be of type array, null given

This error happens on PHP 8 and higher, because TYPO3\CMS\Core\Utility\ArrayUtility::getValueByPath() expects an array as first parameter, but receives null.

Actions

Also available in: Atom PDF