Skip to content
Snippets Groups Projects
Commit 8038b67f authored by Thomas Hohn's avatar Thomas Hohn Committed by Benni Mack
Browse files

[FEATURE] Deprecate and replace Abstractfile::FILETYPE_* with enum

Deprecate the following constants in:
* `\TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_UNKNOWN`
* `\TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_TEXT`
* `\TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_IMAGE`
* `\TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_AUDIO`
* `\TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_VIDEO`
* `\TYPO3\CMS\Core\Resource\AbstractFile::FILETYPE_APPLICATION`

Instead a new native backed enum `\TYPO3\CMS\Core\Resource\FileType`
is added as a drop-in replacement.

Resolves: #102032
Releases: main
Change-Id: Ia79a0bd4c6741c0772964cd01d1bc7dd4cf5b1a7
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/81261


Tested-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarBenni Mack <benni@typo3.org>
Reviewed-by: default avatarOliver Klee <typo3-coding@oliverklee.de>
Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarBenni Mack <benni@typo3.org>
parent ac829ed0
No related merge requests found
Showing
with 406 additions and 239 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment