Breaking: #33747 - Remove non-implemented sortable Collection logic
See forge#33747
Description
The
\TYPO3\ has been
removed from the TYPO3 Core.
This interface was never properly implemented and served no purpose in the codebase. It defined methods for sorting collections via callback functions and moving items within collections, but no concrete implementations existed.
The interface defined the following methods:
usort– for sorting a collection via a given callback function($callback Function) move– for moving items within the collectionItem At ($current Position, $new Position = 0)
Impact
Any code that implements or references
\Sortable
will trigger a PHP fatal error.
Since this interface was never implemented in the TYPO3 Core and had no real-world usage, the impact should be minimal for most installations.
Affected installations
Installations with custom extensions that implement or reference the
\Sortable are affected.
Migration
Remove any references to
\Sortable
from your code.
If you need sortable collection functionality, implement your own sorting logic
directly in your collection classes, or use PHP's built-in array sorting functions
such as
usort,
uasort, or
uksort.