Issue Bug Closed

#107061PHP type error in SlugHelper when persisting page record

Lisa Kreitz 07/09/25, 08:40 updated 12/02/25, 13:57

Description

When editing page properties in a workspace, I get the following PHP type error on saving the record:

TYPO3\CMS\Core\DataHandling\SlugHelper::TYPO3\CMS\Core\DataHandling\{closure}():
Return value must be of type ?array, false returned

in line 535 of SlugHelper.php

Reviews 3

History 68

  1. Oliver Hader commented and changed status New Accepted <span data-processor="relativetime" data-value="2025-07-09T08:47:50+00:00" > 07/09/25, 08:47 </span>

    Thanks for your report :)

    It seems, that this behavior has been introduced with issue #102722 with adding the strict ?array type:

  2. Gerrit Code Review pushed patch set 1 for main to change 90030 status Accepted Under Review <span data-processor="relativetime" data-value="2025-07-09T09:22:42+00:00" > 07/09/25, 09:22 </span>

  3. Oliver Hader commented <span data-processor="relativetime" data-value="2025-07-09T12:00:23+00:00" > 07/09/25, 12:00 </span>

    PhpStan could have found that with level 7. Unfortunately we only have level 5 in the TYPO3 core:
    https://phpstan.org/r/d8e02607-e0af-4896-b7f5-aeaa94e600a1

  4. Oliver Hader commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-07-09T12:05:10+00:00" > 07/09/25, 12:05 </span>

    Applied in changeset commit:50a5db07eeab4f093e935d18967f8f622c90f42a.