Issue Bug Closed

#110065DataHandler->errorLog type is not specific enough

Daniel Siepmann 06/17/26, 06:18 updated 08/11/26, 08:50

Description

Official docs explain how to use this internal property for error handling: https://docs.typo3.org/permalink/t3coreapi:tcemain-error-handling
But the property is only hinted with array and misses the more specific PHPDocBlock to specify that this is a list of strings.

That leads to PHPStan errors in consuming code like:

        self::assertCount(0, $dataHandler->errorLog, 'Failed with errors: ' . implode(PHP_EOL, $dataHandler->errorLog));
  85     Parameter #2 $array of function implode expects array<string>, array   
         given.                                                                 
         🪪  argument.type                                                      

I’d therefore recommend to add a proper more specific type hint.

Reviews 2

History 27

  1. Daniel Siepmann commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-06-18T09:45:12+00:00" > 06/18/26, 09:45 </span>

    Applied in changeset commit:05dfd359f81f166f8b3bf99aac4f217ba677b237.